Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually delete unused keys from redis activity cache #3282

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mouse-reeve
Copy link
Member

@mouse-reeve mouse-reeve commented Feb 9, 2024

This adds an admin UI to delete keys from the redis activity cache that are no longer in use.

Remaining work:

  • Separate out the type of keys to delete (cache vs activitystreams)
  • Allow deletion of entire django cache, separately from cache items with an outdated prefix
  • Ensure that the activitystreams code isn't re-creating invalid keys (ie, for deleted users)
  • [ ] Maybe add a schedule-able task to remove unused keys?

Screenshots

When you open the page: Screenshot 2024-08-23 at 7 35 44 PM
When you scan for outdated keys: Screenshot 2024-08-23 at 7 35 49 PM
If you want to clear the Django cache: Screenshot 2024-08-23 at 7 36 05 PM

@mouse-reeve mouse-reeve added the performance Things related to performance, optimization, load times, etc label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Things related to performance, optimization, load times, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant