summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-07-17 12:23:30 +0200
committerBnyro <bnyro@tutanota.com>2026-07-17 12:24:47 +0200
commitde8f73f43422588163782c956ae244a41f6bbba0 (patch)
treec6137d95e39b9ad67ff28d61674df86960298c1b /searx
parent9f9c00819eb210a67a33fed67b303f604168ad00 (diff)
[fix] cache: maintenance period comment duration 2h instead of 1h
Diffstat (limited to 'searx')
-rw-r--r--searx/cache.py2
-rw-r--r--searx/enginelib/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/cache.py b/searx/cache.py
index 1b2d50e2b..93304f150 100644
--- a/searx/cache.py
+++ b/searx/cache.py
@@ -48,7 +48,7 @@ class ExpireCacheCfg(msgspec.Struct): # pylint: disable=too-few-public-methods
MAXHOLD_TIME: int = 60 * 60 * 24 * 7 # 7 days
"""Hold time (default in sec.), after which a value is removed from the cache."""
- MAINTENANCE_PERIOD: int = 60 * 60 # 2h
+ MAINTENANCE_PERIOD: int = 60 * 60 # 1h
"""Maintenance period in seconds / when :py:obj:`MAINTENANCE_MODE` is set to
``auto``."""
diff --git a/searx/enginelib/__init__.py b/searx/enginelib/__init__.py
index 009e6f9a2..481a91718 100644
--- a/searx/enginelib/__init__.py
+++ b/searx/enginelib/__init__.py
@@ -47,7 +47,7 @@ ENGINES_CACHE: ExpireCacheSQLite = ExpireCacheSQLite.build_cache(
ExpireCacheCfg(
name="ENGINES_CACHE",
MAXHOLD_TIME=60 * 60 * 24 * 7, # 7 days
- MAINTENANCE_PERIOD=60 * 60, # 2h
+ MAINTENANCE_PERIOD=60 * 60, # 1h
MAX_VALUE_LEN=1024 * 1024 * 1024, # 1MB
)
)