Loading django/core/cache/__init__.py +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ class DefaultCacheProxy(object): cache = DefaultCacheProxy() def close_caches(**kwargs): # Some caches -- python-memcached in particular -- need to do a cleanup at the # end of a request cycle. If not implemented in a particular backend Loading tests/cache/tests.py +5 −4 Original line number Diff line number Diff line Loading @@ -1150,7 +1150,8 @@ class CustomCacheKeyValidationTests(TestCase): 'default': { 'BACKEND': 'cache.closeable_cache.CacheClass', } },) } ) class GetCacheTests(IgnorePendingDeprecationWarningsMixin, TestCase): def test_simple(self): Loading Loading
django/core/cache/__init__.py +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ class DefaultCacheProxy(object): cache = DefaultCacheProxy() def close_caches(**kwargs): # Some caches -- python-memcached in particular -- need to do a cleanup at the # end of a request cycle. If not implemented in a particular backend Loading
tests/cache/tests.py +5 −4 Original line number Diff line number Diff line Loading @@ -1150,7 +1150,8 @@ class CustomCacheKeyValidationTests(TestCase): 'default': { 'BACKEND': 'cache.closeable_cache.CacheClass', } },) } ) class GetCacheTests(IgnorePendingDeprecationWarningsMixin, TestCase): def test_simple(self): Loading