Skip to content

Adding a lock mechanism on cache rebuild #29

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

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

moufmouf
Copy link
Member

@moufmouf moufmouf commented Apr 3, 2019

When a cache expires, it needs to be recomputed. If the website is under heavy load, the recompute will be started by many processes at once and will slow down the server.
Adding a lock allows us to perform this recompute only once.

When a cache expires, it needs to be recomputed. If the website is under heavy load, the recompute will be started by many processes at once and will slow down the server.
Adding a lock allows us to perform this recompute only once.
@moufmouf moufmouf force-pushed the lock_cache_rebuild branch from d0a62d1 to 6b43288 Compare April 3, 2019 08:53
@moufmouf moufmouf merged commit 1f0d93f into thecodingmachine:master Apr 3, 2019
@moufmouf moufmouf deleted the lock_cache_rebuild branch April 3, 2019 08:56
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