mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
076ba6f0ae
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. |
||
---|---|---|
.. | ||
activitypub | ||
connectors | ||
forms | ||
importers | ||
management/commands | ||
middleware | ||
migrations | ||
models | ||
static | ||
telemetry | ||
templates | ||
templatetags | ||
tests | ||
utils | ||
views | ||
__init__.py | ||
activitystreams.py | ||
admin.py | ||
apps.py | ||
book_search.py | ||
context_processors.py | ||
emailing.py | ||
imagegenerators.py | ||
lists_stream.py | ||
preview_images.py | ||
redis_store.py | ||
settings.py | ||
signatures.py | ||
status.py | ||
storage_backends.py | ||
suggested_users.py | ||
tasks.py | ||
thumbnail_generation.py | ||
urls.py | ||
wsgi.py |