summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-28 13:56:53 +0100
committerErik Johnston <erik@matrix.org>2017-09-28 13:56:53 +0100
commit7cc483aa0ef9e51bd3839768e44b449cf6d24136 (patch)
treeb21684944ddc0694873f0a4a5dc1fd904c929339
parentActually assign result to variable (diff)
downloadsynapse-7cc483aa0ef9e51bd3839768e44b449cf6d24136.tar.xz
Clear up expired url cache every 10s
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 0123369a7f..2300c263e0 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -74,7 +74,7 @@ class PreviewUrlResource(Resource):
         self.downloads = {}
 
         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):