From 9f23a3ee32d1248ced4ad6feff3d601b83c6be44 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 11 Feb 2025 20:48:10 +0000 Subject: [PATCH] cache_helpers: Use the configured timeout. It is the same for all of the caches, but make it not misleading. --- zerver/lib/cache_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/cache_helpers.py b/zerver/lib/cache_helpers.py index 4494f4bfc2..6fcdf09eb1 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,