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

Use lru_cache for caching release and tags info #5238

Merged
merged 4 commits into from
Apr 23, 2023

Conversation

mattiaverga
Copy link
Contributor

Switch from a custom cache implementation to python standard library provided lru_cache for caching all_releases() and Release.get_tags().
This should also resolve a small issue where the cache was not reloaded after a release was edited, resulting in the releases list webpage not reflecting the change.

Signed-off-by: Mattia Verga mattia.verga@tiscali.it

Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
@mattiaverga mattiaverga marked this pull request as ready for review April 18, 2023 06:24
@mattiaverga mattiaverga requested a review from a team as a code owner April 18, 2023 06:25
@mattiaverga mattiaverga merged commit 7271664 into fedora-infra:develop Apr 23, 2023
@mattiaverga mattiaverga deleted the archived_releases branch April 23, 2023 08:17
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