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

Update CITCache to respect cache refresh delay #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CeleiteCode
Copy link

The current implementation does spread out cache refreshes, but it achieves this by randomizing the delay between 0 and 2*cache_ms.

This instead adds an initial offset, while keeping the delay between refreshes consistent with cache_ms.

Updated cache invalidation to use a random initial offset instead of random delay between refreshes.

Each CIT will update every cache_ms but starts at an initial offset time.
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.

None yet

1 participant