tedious/TedivmStashBundle

Confirm that the Cache::Clear function in Symfony also clears Stash caches.

tedivm opened this issue · 2 comments

I'm honestly not sure if this is the best way to handle this, or if we want some more fine tuned controls. However, what is clear is that we need some sort of functionality to allow cache's to be easily cleared (preferably from the command line).

It depends how you configure your cache. If for example you have an SQLite cache located in the Symfony cache dir then yes, it'd clear when Symfony's cache is cleared.

same with file system, but indeed there could safely be a separate console command to clear stash cache for those running on memcache(d)/redis/(..), but it won't be able to clear apc cache for web process so it should warn about cases like that if such drivers are configured.