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

Fix cache #402

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Fix cache #402

merged 1 commit into from
Oct 20, 2023

Conversation

holly-cummins
Copy link
Collaborator

We expect updates to GitHub data to take a few days, but it's been about a week and I'm still seeing stale data. On investigation, I discovered a fault in the caching logic. We dump the expiry time of cache entries to disk, but when we re-import, the node-cache library does not honour the expiry timestamps; instead, it just sets a standard time to live. Since each built is short lived, this means data never actually expires from the cache.

@github-actions
Copy link

github-actions bot commented Oct 20, 2023

🙈 The PR is closed and the preview is expired.

@holly-cummins holly-cummins merged commit 898be25 into quarkusio:main Oct 20, 2023
3 checks passed
@holly-cummins
Copy link
Collaborator Author

In order words, any time the cache got ingested, the expiries got renewed- with regular builds, it was an infinite lifetime cache!

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