From 68b8eda78864b78d1b8b2529ec119ec440f8458a Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 26 Aug 2021 13:54:26 +0100 Subject: [PATCH] Refs #33060 -- Added .make_key() in .touch() for dummy cache backend. All cache operations should use make_key(). --- django/core/cache/backends/dummy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/core/cache/backends/dummy.py b/django/core/cache/backends/dummy.py index 3913746c495..450d0997a6a 100644 --- a/django/core/cache/backends/dummy.py +++ b/django/core/cache/backends/dummy.py @@ -22,6 +22,7 @@ class DummyCache(BaseCache): self.validate_key(key) def touch(self, key, timeout=DEFAULT_TIMEOUT, version=None): + key = self.make_key(key, version=version) self.validate_key(key) return False