cubicweb/entities/lib.py
changeset 12539 10159a3d1d72
parent 11767 432f87a63057
child 12567 26744ad37953
--- a/cubicweb/entities/lib.py	Fri Mar 22 17:30:09 2019 +0100
+++ b/cubicweb/entities/lib.py	Fri Mar 22 17:29:15 2019 +0100
@@ -125,25 +125,3 @@
             return self._cw._(self._cw.vreg.property_info(self.pkey)['help'])
         except UnknownProperty:
             return u''
-
-
-class CWCache(AnyEntity):
-    """Cache"""
-    __regid__ = 'CWCache'
-    fetch_attrs, cw_fetch_order = fetch_config(['name'])
-
-    def __init__(self, *args, **kwargs):
-        warn('[3.19] CWCache entity type is going away soon. '
-             'Other caching mechanisms can be used more reliably '
-             'to the same effect.',
-             DeprecationWarning)
-        super(CWCache, self).__init__(*args, **kwargs)
-
-    def touch(self):
-        self._cw.execute('SET X timestamp %(t)s WHERE X eid %(x)s',
-                         {'t': datetime.now(), 'x': self.eid})
-
-    def valid(self, date):
-        if date:
-            return date > self.timestamp
-        return False