[openstreetmap/openstreetmap-website] Consequences of using the cache (Issue #6989)
Tom Hughes
notifications at github.com
Tue Apr 14 14:28:47 UTC 2026
tomhughes left a comment (openstreetmap/openstreetmap-website#6989)
I'm not familiar with the details of what the other PR was proposing to cache but in general if the cached data changes then the key should change so that invalidation is automatic - at least that is how I understood rails caching to work?
There is no eviction as such, unused data just moves to the back of the LRU list and is evicted when space is needed for a new entry. That's why I don't understand that other ticket because all our statistics say that it takes weeks for that to happen.
I think the issue with the database was just the churn from storing session records and the inefficiency of constant reads and writes for ever single page load.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6989#issuecomment-4244685852
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6989/4244685852 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260414/87dcf5b9/attachment.htm>
More information about the rails-dev
mailing list