Commit 365a4674 authored by Tomi Suomela's avatar Tomi Suomela

Fix for locking

parent f90b8e24
......@@ -510,7 +510,7 @@ class BaseRedisCache(BaseCache):
def try_delete(self, client, key):
"""Remove a key from the cache if not locked."""
lock_key = "__lock__" + key
lock = cache.lock(lock_key, timeout=5)
lock = self.lock(lock_key, timeout=5)
acquired = lock.acquire(blocking=False)
if acquired:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment