Skip to content
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

Closed
viktoras25 opened this issue Oct 9, 2013 · 6 comments
Closed

[NFR] Cache flush #1352

viktoras25 opened this issue Oct 9, 2013 · 6 comments

Comments

@viktoras25
Copy link
Contributor

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.

@dreamsxin
Copy link
Contributor

\Phalcon\Cache with the prefix, if use flush, will delete other prefixes Cache

@viktoras25
Copy link
Contributor Author

Wow, this looks like a huge piece of work. Thanks.

phalcon pushed a commit that referenced this issue Oct 22, 2013
@phalcon phalcon closed this as completed Oct 25, 2013
@lexus27
Copy link

lexus27 commented Feb 5, 2015

Is there a mechanism for centralized reset memcache, both say reset memcache in interface modelsManager\MetaData? translating it through translator)))

@lexus27
Copy link

lexus27 commented Feb 5, 2015

Put all CacheBackend an array backend, and use anywhere static method :: flush () to reset all backend, good Idea?

@lexus27
Copy link

lexus27 commented Feb 5, 2015

Auto put

@lexus27
Copy link

lexus27 commented Feb 5, 2015

If there is a lot of client users CacheBackend and CacheFrontend, is once again fit to reset all these CacheBackend, one method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants