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

Fix #1352 Add Flush for Cache #1395

Merged
merged 15 commits into from
Oct 22, 2013
Merged

Fix #1352 Add Flush for Cache #1395

merged 15 commits into from
Oct 22, 2013

Conversation

dreamsxin
Copy link
Contributor

Fix #1352 Add Flush for Cache

@phalcon
Copy link
Collaborator

phalcon commented Oct 19, 2013

Is flush() implemented in every adapter?

@dreamsxin
Copy link
Contributor Author

@phalcon Yes, use queryKeys to delete all

phalcon pushed a commit that referenced this pull request Oct 22, 2013
@phalcon phalcon merged commit 0d39dcd into phalcon:1.3.0 Oct 22, 2013
@lantian
Copy link
Contributor

lantian commented May 29, 2014

One question.. if flush uses queryKeys - it will not work when prefix is used ?

@dreamsxin
Copy link
Contributor Author

@lantian Use queryKeys get keys is last key contains prefix.

@tankist
Copy link

tankist commented Jul 3, 2014

OMG, why don't you used native flush for Memcached, for example???
Also xcache_clear_cache???

@dreamsxin
Copy link
Contributor Author

@tankist Because here only to remove the application Settings cache, on the same statsKey can be deleted.

@tankist
Copy link

tankist commented Jul 4, 2014

@dreamsxin Sorry, I don't get it.
I have visited this pull-request because I have a huge problem with statsKey on big number of items cached (~40k). I don't understand why we need this statsKey at all.
Sorry if my thoughts are not relevant to this pull-request

@dreamsxin
Copy link
Contributor Author

@tankist This is to avoid the interference between across applications. I can see if statsKey is empty, is use flush, i try it.

@dreamsxin dreamsxin deleted the flush branch August 20, 2014 07:59
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

Successfully merging this pull request may close these issues.

4 participants