Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

cache_helpers: Use the configured timeout.

Alex Vandiver9f23a3ee32d1
diff --git a/zerver/lib/cache_helpers.py b/zerver/lib/cache_helpers.py
index 4494f4bfc25..6fcdf09eb10 100644
--- a/zerver/lib/cache_helpers.py
+++ b/zerver/lib/cache_helpers.py
@@ -133,9 +133,9 @@ def fill_remote_cache(cache: str) -> None:
items_filler(items_for_remote_cache, obj)
count += 1
if count % batch_size == 0:
- cache_set_many(items_for_remote_cache, timeout=3600 * 24)
+ cache_set_many(items_for_remote_cache, timeout=timeout)
items_for_remote_cache = {}
- cache_set_many(items_for_remote_cache, timeout=3600 * 24 * 7)
+ cache_set_many(items_for_remote_cache, timeout=timeout)
logging.info(
"Successfully populated %s cache: %d items, %d DB queries, %d memcached sets, %.2f seconds",
cache,