-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[NFR] Cache flush #1352
Comments
\Phalcon\Cache with the prefix, if use flush, will delete other prefixes Cache |
Wow, this looks like a huge piece of work. Thanks. |
Is there a mechanism for centralized reset memcache, both say reset memcache in interface modelsManager\MetaData? translating it through translator))) |
Put all CacheBackend an array backend, and use anywhere static method :: flush () to reset all backend, good Idea? |
Auto put |
If there is a lot of client users CacheBackend and CacheFrontend, is once again fit to reset all these CacheBackend, one method |
I was quite surprised not to found flush method in the Cache interfaces and classes. The simples example of use is: I have a running website, i've updated configuration and I need to reset the configuration cache.
In my specific current example I want to flush memcached cache, which is possible with plain php: http://www.php.net/manual/en/memcached.flush.php
Proposed change: Add flush() method to \Phalcon\Cache\BackendInterface
It should either invalidate or delete all cache entries.
The text was updated successfully, but these errors were encountered: