Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

RFC: Cache the code of conduct text #285

Open
TimJentzsch opened this issue Oct 25, 2021 · 0 comments
Open

RFC: Cache the code of conduct text #285

TimJentzsch opened this issue Oct 25, 2021 · 0 comments
Labels
enhancement RFC Request for Comments

Comments

@TimJentzsch
Copy link
Contributor

Currently, we pull the CoC text every time a new user starts transcribing:

coc_not_accepted.format(get_wiki_page("codeofconduct", cfg)),

Instead, the text should be cached and only pulled whenever the bot gets restarted or the !reload command is executed.

Advantages

  • More efficient
  • Less interactions with the Reddit API

Disadvantages

  • We have to remember executing !reload when we change the CoC. We would need to add this to the wiki.
@TimJentzsch TimJentzsch added enhancement RFC Request for Comments labels Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement RFC Request for Comments
Projects
None yet
Development

No branches or pull requests

1 participant