From 861c88eb57d33b648afa4937c2be40fd57b0a2f9 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Tue, 1 Sep 2026 19:44:00 +0200 Subject: [PATCH] docs(admin): note that av_rescan_days=0 does not disable rescanning Values below 1 are silently replaced with the 28-day default in BackgroundScanner::getOutdatedFiles(), so setting 0 to switch off the periodic rescan has no effect. Points at av_background_scan instead. AI-Assisted-By: Claude Opus 5 (1M context) Signed-off-by: Anna Larch --- .../configuration_server/antivirus_configuration.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin_manual/configuration_server/antivirus_configuration.rst b/admin_manual/configuration_server/antivirus_configuration.rst index de5675dbec1..e8fc9e39a1a 100644 --- a/admin_manual/configuration_server/antivirus_configuration.rst +++ b/admin_manual/configuration_server/antivirus_configuration.rst @@ -244,3 +244,8 @@ Disabling background scan task You can disable background scan with occ to only scan files during upload:: sudo -E -u www-data php occ config:app:set files_antivirus av_background_scan --value="off" + +.. note:: Setting ``av_rescan_days`` to ``0`` does **not** disable the periodic rescan of + already-scanned files. Any value below ``1`` is silently replaced with the default of 28 days, + so the rescan continues on its normal schedule. Use ``av_background_scan`` as shown above to + stop background scanning altogether.