Skip to content

Slow delete_pattern() #609

@jdbit

Description

@jdbit

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions