equal
deleted
inserted
replaced
142 'default': 0, |
142 'default': 0, |
143 'help': _('timestamp of the latest source synchronization.'), |
143 'help': _('timestamp of the latest source synchronization.'), |
144 'group': 'sources', |
144 'group': 'sources', |
145 }),) |
145 }),) |
146 register_persistent_options(myoptions) |
146 register_persistent_options(myoptions) |
147 self._query_cache = TimedCache(30) |
147 self._query_cache = TimedCache(1800) |
148 |
148 |
149 def reset_caches(self): |
149 def reset_caches(self): |
150 """method called during test to reset potential source caches""" |
150 """method called during test to reset potential source caches""" |
151 self._query_cache = TimedCache(30) |
151 self._query_cache = TimedCache(1800) |
152 |
152 |
153 def last_update_time(self): |
153 def last_update_time(self): |
154 pkey = u'sources.%s.latest-update-time' % self.uri |
154 pkey = u'sources.%s.latest-update-time' % self.uri |
155 rql = 'Any V WHERE X is CWProperty, X value V, X pkey %(k)s' |
155 rql = 'Any V WHERE X is CWProperty, X value V, X pkey %(k)s' |
156 session = self.repo.internal_session() |
156 session = self.repo.internal_session() |