mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 16:00:10 -04:00
Fix some instances of ExpiringCache not expiring cache items
ExpiringCache required that `start()` be called before it would actually start expiring entries. A number of places didn't do that. This PR removes `start` from ExpiringCache, and automatically starts backround reaping process on creation instead.
This commit is contained in:
parent
ad53a5497d
commit
8601c24287
16 changed files with 12 additions and 39 deletions
|
@ -79,7 +79,6 @@ class PreviewUrlResource(Resource):
|
|||
# don't spider URLs more often than once an hour
|
||||
expiry_ms=60 * 60 * 1000,
|
||||
)
|
||||
self._cache.start()
|
||||
|
||||
self._cleaner_loop = self.clock.looping_call(
|
||||
self._start_expire_url_cache_data, 10 * 1000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue