bookwyrm/bookwyrm
Mouse Reeve 076ba6f0ae Dramatically reduce cache duration for reading statuses
I originally set this for a very long timeout because this value should
be invalidated when it needs to be by the models, and if that worked
perfectly, this would reduce queries dramatically for books that show up
in ones feed frequently, but don't change status (for example, a book
you read and your friend is currently posting about). In practice, of
course, there are errors in invalidating this cache which leave this
value appearing extremely broken and it's next to impossible to fix.

This change makes each of the timeouts related to reading an hour, which
will still give performance benefit when browsing the site (especially
for loading the same book multiple times on a page), but resolve
naturally if the cache gets into a bad state.
2022-07-07 12:06:06 -07:00
..
activitypub Merge pull request #2133 from bookwyrm-social/activitypub-connection-erorr 2022-05-26 10:12:18 -07:00
connectors Handle getting edition data as dict or string 2022-07-03 11:05:20 -07:00
forms Fixes setting acces level to "user" 2022-07-04 21:44:55 -07:00
importers Pylint fixes 2022-07-02 12:07:22 -07:00
management/commands Use values_list with flat, yay! 2022-06-07 23:15:34 -07:00
middleware Adds IP blocklist views 2021-09-17 13:04:10 -07:00
migrations Adds merge migration 2022-07-06 14:42:58 -07:00
models Group notification types by feature 2022-07-06 19:15:48 -07:00
static Prettier 2022-05-26 12:54:31 -07:00
telemetry Copy config from prod branch to main 2022-02-04 18:36:12 -08:00
templates Merge pull request #2082 from bookwyrm-social/notifications 2022-07-07 09:34:19 -07:00
templatetags Dramatically reduce cache duration for reading statuses 2022-07-07 12:06:06 -07:00
tests Settings 2022-07-07 11:37:34 -07:00
utils Use "strip" in bleach 2022-07-04 13:55:58 -07:00
views Merge pull request #2082 from bookwyrm-social/notifications 2022-07-07 09:34:19 -07:00
__init__.py rename main code directory 2020-09-17 13:30:54 -07:00
activitystreams.py Fixes how backdated statuses are prioritized 2022-05-16 09:24:01 -07:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Log info, not exception, for expected errors 2022-03-11 14:55:54 -08:00
book_search.py Re-implements return first option 2022-05-31 08:20:59 -07:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Allow reports with no associated user 2022-07-05 17:19:03 -07:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Use update_fields to limit remove_list_tasks 2022-07-02 13:23:23 -07:00
preview_images.py Fix linting and formatting 2022-01-25 01:09:27 -08:00
redis_store.py use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
settings.py Update password reset copy so as not to reveal whether the email exists 2022-07-06 19:34:00 -07:00
signatures.py Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py Fix R1725: Consider using Python 3 style super() without arguments 2021-08-04 11:58:53 +02:00
suggested_users.py Merge branch 'main' into list-not-loading 2022-01-07 10:32:17 -08:00
tasks.py Adds enum for queue names 2021-11-11 19:10:22 -08:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Allow reports with no associated user 2022-07-05 17:19:03 -07:00
wsgi.py Updates migrations 2020-09-21 08:10:37 -07:00