From 1ef29ab1b8277da690fcb48a184323291e2bb5ac Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 22 Jan 2026 17:19:12 +0100 Subject: [PATCH] Small tweak --- changedetectionio/store/file_saving_datastore.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/store/file_saving_datastore.py b/changedetectionio/store/file_saving_datastore.py index c94436552..4f720a78f 100644 --- a/changedetectionio/store/file_saving_datastore.py +++ b/changedetectionio/store/file_saving_datastore.py @@ -33,6 +33,10 @@ except ImportError: # Set to True for mission-critical deployments requiring crash consistency FORCE_FSYNC_DATA_IS_CRITICAL = bool(strtobool(os.getenv('FORCE_FSYNC_DATA_IS_CRITICAL', 'False'))) +# Save interval configuration: How often the background thread saves dirty items +# Default 60 seconds - increase for less frequent saves, decrease for more frequent +DATASTORE_SAVE_INTERVAL_SECONDS = int(os.getenv('DATASTORE_SAVE_INTERVAL_SECONDS', '10')) + # ============================================================================ # Helper Functions for Atomic File Operations