-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Review different caching layers in Alaveteli with an eye to simplifying #1006
Comments
This is a precursor to #1475 |
Specifically, it would be good to decide if we've going to turn on Varnish purging again for WDTK or take some other strategy for expiring cached pages. |
A WhatDoTheyKnow user today was surprised by the site's caching practice. I think they may have seen changes a day before while logged in, then were surprised not to have seen them when viewing the site while not logged in the next day. They wrote:
|
|
Linking to #1168 |
I can't find the idea of a cache refreshing button for admins to use on pages/documents I recall that has been discussed. I think it might be a good idea, but better would be designing the system so it wasn't needed. Cache delays do cause issues when running the site, admin actions aren't immediately reflected on the version of the site seen by non logged in users. We can:
I also just made a mistake when I wrote a tweet which was intended to point to a newly updated public body page, but I forgot about the slow caching issue, so readers were initially sent to the old version of the page, and deleted and re-issued the tweet with a cache busting parameter. |
I had an issue I'd not experienced before this morning. I was creating censor rules and reloading a PDF to seek to see their effect. The PDF was being cached and I had to add URL parameters to break thought the cache. Previously reloading / re-downloading a PDF has been sufficient to obtain the latest copy. I don't yet know if this was an issue with one document or if it is a general issue. |
I am now doing other redactions and seeing the effects straight away as usual. |
While we've now reduced the attachment cache usage in #1549, it still grows pretty large, especially since mySociety hosts several Alavetelis. We should probably use ActiveStorage with a S3 compatible backend so that we have more flexibility in how we distribute these files. |
Yes, and also get this enabled for raw_emails, files and other things, too. We'd need to consider the prioritisation for each area carefully. |
This thread has previously been linked to #1168 "Requests not appearing immediately on request list page" but just to expand on that - sometimes what looks like it might be a caching issue will actually be a slow search index updating issue. |
At WhatDoTheyKnow we wanted to tweet a link to a page on which we had just added an annotation. We had an inkling that we needed to be aware caching could delay the appearance of the annotation to non-logged in users. Our experience is shown below, comments from three people in different places taken from Slack:
|
At the time of writing @confirmordeny and I are both currently experiencing https://www.whatdotheyknow.com/body/list/estate_management_scheme not being updated with changes (additions to the list) made around 12 hours ago |
All slow cache issues are being closed in-favour of this issue; however this issue relates to a systematic change and often the issue is that cache-updates appear surprisingly slow at the moment / recently / on a specific page. |
The underlying causes are likely to be the same (or if they're different, we won't really know until we've got a much clearer understanding of how all the layers interact). |
Should look at what our etags are doing and how they interact with varnish |
We are caching in several places in the codebase. It would be good to do a review and see if there's an opportunity to simplify. Should also research what recommendations for caching in Rails 3/4 are.
The text was updated successfully, but these errors were encountered: