Skip to content

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