0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 14:23:50 +01:00

Clear up expired url cache every 10s

This commit is contained in:
Erik Johnston 2017-09-28 13:56:53 +01:00
parent e1e7d76cf1
commit 7cc483aa0e

View file

@ -74,7 +74,7 @@ class PreviewUrlResource(Resource):
self.downloads = {} self.downloads = {}
self._cleaner_loop = self.clock.looping_call( self._cleaner_loop = self.clock.looping_call(
self._expire_url_cache_data, 30 * 1000 self._expire_url_cache_data, 10 * 1000
) )
def render_GET(self, request): def render_GET(self, request):