Commit cae98352 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

cleanup

--HG--
branch : stable
parent c151c730a1ac
......@@ -15,9 +15,8 @@
#
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""Base class for request/session
"""Base class for request/session"""
"""
__docformat__ = "restructuredtext en"
from warnings import warn
......
......@@ -197,7 +197,8 @@ repository (default to 5 minutes).',
"""method called by the repository once ready to handle request"""
interval = int(self.config.get('synchronization-interval', 5*60))
self.repo.looping_task(interval, self.synchronize)
self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired)
self.repo.looping_task(self._query_cache.ttl.seconds/10,
self._query_cache.clear_expired)
def synchronize(self, mtime=None):
"""synchronize content known by this repository with content in the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment