-
-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Labels
Description
Hi, I have a problem with delete_pattern() function.
This code with cache.delete_pattern() is very-very slow:
cache.delete_pattern("template.cache.some_cache*")
But when I rewrite the code, it works blazing fast:
keys = cache.keys("template.cache.some_cache*")
for o in keys:
cache.delete(o)
Why the delete_pattern() is so slow? Is it a bug or I'm doing something wrong?