Clearing the application cache causes the cache invalidator to fail #8502
Unanswered
miicah
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Versions: can replicate on 3.4 and 4.8
Static caching strategy: full
Steps to reproduce:
From what I can understand, this is happening because clearing the application cache means the entire stache is blown away and there is never a call to go back and re-index (re-check?) all of the files in the content folders.
Why do we do this? Because we need to upload very large files to Statamic and cannot use the CMS, so they are copied directly into the assets folder - unfortunately this won't show up in the CMS until the application cache is cleared. This is how we came across the issue, but there are many reasons you might need to clear the application cache.
The simple solution is to run
php please static:warm
but this doesn't work for us as our production server is behind authentication, so the guzzle requests don't actually hit any of the real pages.What I'm trying to understand is if this is a bug or an oversight in how full static caching is implemented? Should a
php please stache:warm
scan the static folders as well?Beta Was this translation helpful? Give feedback.
All reactions