aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/cache.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-10 23:07:15 +0100
committerAymeric Augustin2013-11-10 23:18:15 +0100
commit35f90e2644dcb9e49247b80535f3a4e070b8943b (patch)
tree0ad193aa21ab4edc0e96e9516b7412003de78661 /debug_toolbar/panels/cache.py
parent28dac268782b1e9b2c0bce1b9d8aad5fc4673a1d (diff)
downloaddjango-debug-toolbar-35f90e2644dcb9e49247b80535f3a4e070b8943b.tar.bz2
Made enable/disable_instrumentation idempotent.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
-rw-r--r--debug_toolbar/panels/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index a6b06ce..831eacb 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -202,7 +202,7 @@ class CacheDebugPanel(DebugPanel):
def enable_instrumentation(self):
# This isn't thread-safe because cache connections aren't thread-local
# in Django, unlike database connections.
- cache.cache = CacheStatTracker(cache.cache)
+ cache.cache = CacheStatTracker(original_cache)
cache.get_cache = get_cache
def disable_instrumentation(self):