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

Add caching for statistics #115

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Conversation

campos20
Copy link
Member

This is a quick fix for the issue we are having in the statistics website. It is taking too long to load. Every request was running in the database. Now, we are caching the main list and also the statistics detail. We just won't cache the terms searched for now. Caching time is 6 hours because there can be a scenario where we cache in the middle of an updated. Results would be incorrect for the caching duration, so we make it kind of short.

@campos20 campos20 merged commit 53edbfe into thewca:main Jul 22, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant