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

Create a cache sweeper #1070

Open
jcoyne opened this issue Jul 15, 2024 · 0 comments
Open

Create a cache sweeper #1070

jcoyne opened this issue Jul 15, 2024 · 0 comments

Comments

@jcoyne
Copy link
Contributor

jcoyne commented Jul 15, 2024

We're currently using a file cache. A big portion of this cache only is valid for 1 hour (https://github.com/sul-dlss/purl/blob/main/config/settings.yml#L15). In order to free up space we need to periodically run Rails.cache.cleanup. Create a cron job that runs ever night that does this. This will need to happen on both app machines -a/-b since the filesystem is not shared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant