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

Implement a purge method #36

Open
javorszky opened this issue Nov 21, 2015 · 5 comments
Open

Implement a purge method #36

javorszky opened this issue Nov 21, 2015 · 5 comments

Comments

@javorszky
Copy link

For easy transient deletion

@julien731
Copy link

Completely agree with that. It would be really useful. Also, I'd love to see a method for clearing all TLC transients at once.

@Rarst
Copy link
Contributor

Rarst commented Nov 26, 2015

Problem with bulk clearing transients is that it's not in API since Object Cache back ends might simply not have any way to.

So any bulk clearing ends up specific to database storage alone.

@javorszky
Copy link
Author

Hm... would clearing a specific transient work though? Related: if I want to purge all things that begin with _transient_tlc_, and site has object cache, how would I go about doing that?

@Rarst
Copy link
Contributor

Rarst commented Nov 26, 2015

That's the thing — it's not certain that arbitrary back-end implemented has a concept of "things that begin with". So API only goes as far as key/value store of separate individual items.

Every different back-end would need custom implementation of it (if at all possible to implement for it).

@javorszky
Copy link
Author

Ah,, because if they store it with an md5 hash then... brilliant... :/

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