server/querier.py
changeset 7954 a3d3220669d6
parent 7779 3826d8480a68
child 8127 96d343a5e01b
--- a/server/querier.py	Fri Oct 14 09:21:45 2011 +0200
+++ b/server/querier.py	Fri Oct 14 10:33:31 2011 +0200
@@ -25,7 +25,6 @@
 
 from itertools import repeat
 
-from logilab.common.cache import Cache
 from logilab.common.compat import any
 from rql import RQLSyntaxError
 from rql.stmts import Union, Select
@@ -36,6 +35,7 @@
 from cubicweb import server, typed_eid
 from cubicweb.rset import ResultSet
 
+from cubicweb.utils import QueryCache
 from cubicweb.server.utils import cleanup_solutions
 from cubicweb.server.rqlannotation import SQLGenAnnotator, set_qdata
 from cubicweb.server.ssplanner import READ_ONLY_RTYPES, add_types_restriction
@@ -599,7 +599,7 @@
         self.schema = schema
         repo = self._repo
         # rql st and solution cache.
-        self._rql_cache = Cache(repo.config['rql-cache-size'])
+        self._rql_cache = QueryCache(repo.config['rql-cache-size'])
         # rql cache key cache. Don't bother using a Cache instance: we should
         # have a limited number of queries in there, since there are no entries
         # in this cache for user queries (which have no args)