summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaap Roes <jaap@eight.nl>2014-10-10 11:59:47 +0200
committerTim Graham <timograham@gmail.com>2014-10-10 08:43:26 -0400
commit1b5918f160365b97986f21da1a7c35ffd2d5b0b0 (patch)
tree2d36b1057393475436179d9a669234f83bc7c60d
parent322cbe0db7bbe5433e4f529dfb8151d1f91a87c9 (diff)
Fixed #23625 -- Removed CacheClass shim
-rw-r--r--django/core/cache/backends/db.py5
-rw-r--r--django/core/cache/backends/dummy.py5
-rw-r--r--django/core/cache/backends/filebased.py5
-rw-r--r--django/core/cache/backends/locmem.py5
-rw-r--r--docs/releases/1.8.txt6
5 files changed, 6 insertions, 20 deletions
diff --git a/django/core/cache/backends/db.py b/django/core/cache/backends/db.py
index 959095026b..99ce96d49e 100644
--- a/django/core/cache/backends/db.py
+++ b/django/core/cache/backends/db.py
@@ -200,8 +200,3 @@ class DatabaseCache(BaseDatabaseCache):
table = connections[db].ops.quote_name(self._table)
with connections[db].cursor() as cursor:
cursor.execute('DELETE FROM %s' % table)
-
-
-# For backwards compatibility
-class CacheClass(DatabaseCache):
- pass
diff --git a/django/core/cache/backends/dummy.py b/django/core/cache/backends/dummy.py
index 5b6646da96..eb21feebdf 100644
--- a/django/core/cache/backends/dummy.py
+++ b/django/core/cache/backends/dummy.py
@@ -41,8 +41,3 @@ class DummyCache(BaseCache):
def clear(self):
pass
-
-
-# For backwards compatibility
-class CacheClass(DummyCache):
- pass
diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py
index 26522af284..94fdfa9ed7 100644
--- a/django/core/cache/backends/filebased.py
+++ b/django/core/cache/backends/filebased.py
@@ -150,8 +150,3 @@ class FileBasedCache(BaseCache):
filelist = [os.path.join(self._dir, fname) for fname
in glob.glob1(self._dir, '*%s' % self.cache_suffix)]
return filelist
-
-
-# For backwards compatibility
-class CacheClass(FileBasedCache):
- pass
diff --git a/django/core/cache/backends/locmem.py b/django/core/cache/backends/locmem.py
index 7c2609c237..1e8b60544a 100644
--- a/django/core/cache/backends/locmem.py
+++ b/django/core/cache/backends/locmem.py
@@ -127,8 +127,3 @@ class LocMemCache(BaseCache):
def clear(self):
self._cache.clear()
self._expire_info.clear()
-
-
-# For backwards compatibility
-class CacheClass(LocMemCache):
- pass
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index db117e917e..d430a4af45 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -615,6 +615,12 @@ Miscellaneous
* GIS-specific lookups have been refactored to use the
:class:`django.db.models.Lookup` API.
+* The ``CacheClass`` shim has been removed from all cache backends.
+ These aliases were provided for backwards compatibility with Django 1.3.
+ If you are still using them, please update your project to use the real
+ class name found in the :setting:`BACKEND <CACHES-BACKEND>` key of the
+ :setting:`CACHES` setting.
+
.. _deprecated-features-1.8:
Features deprecated in 1.8