equal
deleted
inserted
replaced
195 |
195 |
196 def init(self): |
196 def init(self): |
197 """method called by the repository once ready to handle request""" |
197 """method called by the repository once ready to handle request""" |
198 interval = int(self.config.get('synchronization-interval', 5*60)) |
198 interval = int(self.config.get('synchronization-interval', 5*60)) |
199 self.repo.looping_task(interval, self.synchronize) |
199 self.repo.looping_task(interval, self.synchronize) |
200 self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired) |
200 self.repo.looping_task(self._query_cache.ttl.seconds/10, |
|
201 self._query_cache.clear_expired) |
201 |
202 |
202 def synchronize(self, mtime=None): |
203 def synchronize(self, mtime=None): |
203 """synchronize content known by this repository with content in the |
204 """synchronize content known by this repository with content in the |
204 external repository |
205 external repository |
205 """ |
206 """ |