Static cache not always invalidating entry when saved through control panel #7394
Unanswered
mgtcampbell
asked this question in
Troubleshooting
Replies: 2 comments 4 replies
-
Are you using redis for your queue? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Apologies for the tag @mgtcampbell — but did you manage to work out a fix for this, or are you waiting for the core team? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
I have seen some similar discussions and issues posted however have not come across any reliable fix for my issue.
The issue is that on a client site saving a change to an entry via the CMS does not always invalidate the static cache (half measure).
You can see the change in live preview, however it is not updated on the front end of the site. In the screenshot below note the button is present in the live preview but does not appear on the site after publishing the entry and refreshing the page.
The site is a mutlisite, though all on the one domain, so I am wondering if this has something to do with the issue. I have not done any additional configuration in my cache config files, as the specifics in the documentation for multisite caching specifically say they are for full cache strategy only, not half which I am using.
The problem has been around for a couple of months at least, and I have been updating statmic regularly but it keeps coming back.
Due to the ephemeral nature of updates (especially since it's the client handling this not me), it is very hard to troubleshoot.
They do occasionally send me specific examples I can reproduce like the ones above, but I do not then know how to dig into the cache storage itself to try and diagnose why a specific entry like that one is not being served up as the latest version.
Any tips on how to troubleshoot the invalidation/caching of an individual entry, especially in this setup (multisite, half measure static caching) would be greatly appreciated.
Site set up
Hosting: Vultr/Forge
Statamic Version: 3.3.65
Laravel Version: 9.48.0
Static caching strategy: half, driver => application
Laravel Cache Driver: file
Multisite: True
Other notes:
Beta Was this translation helpful? Give feedback.
All reactions