This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Set up a tallies
cache alias for tracking longer-term values
#1072
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
🐍 tech: python
Requires familiarity with Python
Problem
We are presently using the default
django.core.cache
alias for tracking view caches & authentication information in addition to general tallies and aggregates we wish to track. This means that we have both cache and (ostensibly) longer-term data living in the same Redis database, and (unless explicitly adjusted) existing under the same TTLs.Description
We would like to set up a separate cache alias,
tallies
, which could be used to store longer-living values. The two examples that come to mind would be the dead link tallies that are accumulated invalidate_images
, and the thumbnail domain timeouts that were added in #982.This alias could have a longer (or nonexistent) TTL, with the option to define individual timeouts when writing to the cache.
We should also check through other uses of the
cache
and swap any uses that are not view caches & authentication info to usetallies
.The text was updated successfully, but these errors were encountered: