Browse Source

Refs #33060 -- Added .make_key() in .touch() for dummy cache backend.

All cache operations should use make_key().
Nick Pope 3 years ago
parent
commit
68b8eda788
1 changed files with 1 additions and 0 deletions
  1. 1 0
      django/core/cache/backends/dummy.py

+ 1 - 0
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