mirror of https://github.com/django/django.git
Fixed #23625 -- Removed CacheClass shim
This commit is contained in:
parent
322cbe0db7
commit
1b5918f160
|
@ -200,8 +200,3 @@ class DatabaseCache(BaseDatabaseCache):
|
||||||
table = connections[db].ops.quote_name(self._table)
|
table = connections[db].ops.quote_name(self._table)
|
||||||
with connections[db].cursor() as cursor:
|
with connections[db].cursor() as cursor:
|
||||||
cursor.execute('DELETE FROM %s' % table)
|
cursor.execute('DELETE FROM %s' % table)
|
||||||
|
|
||||||
|
|
||||||
# For backwards compatibility
|
|
||||||
class CacheClass(DatabaseCache):
|
|
||||||
pass
|
|
||||||
|
|
|
@ -41,8 +41,3 @@ class DummyCache(BaseCache):
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# For backwards compatibility
|
|
||||||
class CacheClass(DummyCache):
|
|
||||||
pass
|
|
||||||
|
|
|
@ -150,8 +150,3 @@ class FileBasedCache(BaseCache):
|
||||||
filelist = [os.path.join(self._dir, fname) for fname
|
filelist = [os.path.join(self._dir, fname) for fname
|
||||||
in glob.glob1(self._dir, '*%s' % self.cache_suffix)]
|
in glob.glob1(self._dir, '*%s' % self.cache_suffix)]
|
||||||
return filelist
|
return filelist
|
||||||
|
|
||||||
|
|
||||||
# For backwards compatibility
|
|
||||||
class CacheClass(FileBasedCache):
|
|
||||||
pass
|
|
||||||
|
|
|
@ -127,8 +127,3 @@ class LocMemCache(BaseCache):
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self._cache.clear()
|
self._cache.clear()
|
||||||
self._expire_info.clear()
|
self._expire_info.clear()
|
||||||
|
|
||||||
|
|
||||||
# For backwards compatibility
|
|
||||||
class CacheClass(LocMemCache):
|
|
||||||
pass
|
|
||||||
|
|
|
@ -615,6 +615,12 @@ Miscellaneous
|
||||||
* GIS-specific lookups have been refactored to use the
|
* GIS-specific lookups have been refactored to use the
|
||||||
:class:`django.db.models.Lookup` API.
|
: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:
|
.. _deprecated-features-1.8:
|
||||||
|
|
||||||
Features deprecated in 1.8
|
Features deprecated in 1.8
|
||||||
|
|
Loading…
Reference in New Issue