Skip to content

V16: Cache Version Mechanism #19747

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

Open
wants to merge 14 commits into
base: v16/feature/load-balancing-isolated-caches
Choose a base branch
from

Conversation

nikolajlauridsen
Copy link
Contributor

This pull request introduces a new cache versioning mechanism for repositories, helping to ensure cache consistency with the database in multi-server scenarios. This is the first part of an effort to load balance the backoffice, and by extension, the isolated caches. All this PR does is create a mechanism for us to know if the cache is out of sync; the next part is to be able to synchronize the cache.

Since this can be reviewed as a discrete unit, I've opted to make it its own PR and target a long-lived feature branch.

Testing

Navigate around the backoffice and see that the new cache version table gets created and updated, also try and manually change the version guide to see that the cache is registered as invalid

@bielu
Copy link
Contributor

bielu commented Jul 18, 2025

@nikolajlauridsen if I read it correctly it will check on each request if cache is up to date? I think it would be better to have running background task to do it, as it will not add latency to requests or at least making it switchable from on request to background refresh?

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.

2 participants