cache_helpers: Use the configured timeout.

It is the same for all of the caches, but make it not misleading.
This commit is contained in:
Alex Vandiver
2025-02-11 20:48:10 +00:00
committed by Tim Abbott
parent f58c29b290
commit 9f23a3ee32

View File

@@ -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,