-
Notifications
You must be signed in to change notification settings - Fork 19
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
Best way to invalidate all caches after deployment #21
Comments
"Best" really depends on your deployment process, but if you can run shell commands in your deployment process, this is probably the easiest method: $ framework/sake cache-include/clearAll Alternatively, you could add a build task or logic somewhere that gets |
Excellent yeap sake cache-include/clearAll is perfect. Much of the code in this module is new to me so it's a little hard digging around for my own answers. Would be cool to have some doc in the readme for clearAll. And possibly also for flushAll with an example of how to get CacheInclude from the Injector |
That is a really good point @sheadawson, there is no docs for the cli controller. I'll create a task |
I created task #22 |
I'm experiencing issues clearing the cache trough this command, though i'm not sure if it is an issue or not. I am curious if other people are experience the same situation and how they coop with it. On one project where i use cacheinclude i get into the situation where i get a really bloated "cache" folder in the cache include directory. So bloated that i cannot simply remove it by Every time i'm doing an update i need to somehow remove the cache folder before i can even execute a dev/build. This becomes problematic doing regular updates. What i find strange, but maybe that's because i don't understand the full inner workings of the clear command, is that i run the Hope there is a solution to this problem, i am thinking about combining the |
Hey @TheBnl, you're encountering the issue described in #18 and #17. It can get into this broken state because each cache block config uses its own single item in the cache to index which other keys belong to it (so they can be cleared when you save something related in the CMS). There's a race condition between the fetch and write here. The workaround at the moment is to clear the cache backend manually when this is encountered ( |
Afternoon folks. If I try and run Does that command / path rely on |
@nfauchelle it looks like the Starting in CacheInclude 5.0, the way to do this from the command line would be:
|
Hi just having a go with this module on a project, loving it so far. Just wondering if there is a "best way" to flush/invalidate all caches in an event such as a deployment? ie. in a BuildTask
The text was updated successfully, but these errors were encountered: