docs(admin): note that av_rescan_days=0 does not disable rescanning - #15541
Merged
Conversation
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) <noreply@anthropic.com> Signed-off-by: Anna Larch <anna@nextcloud.com>
Antreesy
approved these changes
Sep 1, 2026
5 tasks
Contributor
Author
|
/backport to stable35 |
Contributor
Author
|
/backport to stable34 |
Contributor
Author
|
/backport to stable33 |
Contributor
📖 Documentation Preview📄 1 changed documentation pageLast updated: Tue, 01 Sep 2026 20:24:51 GMT |
This was referenced Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☑️ Resolves
av_rescan_dayslooks like it can be set to0to switch off the periodic rescan ofalready-scanned files. It cannot, and the failure is silent.
BackgroundScanner::getOutdatedFiles()innextcloud/files_antivirus:So any value below
1is replaced with the default of 28 days and the rescan carries on asnormal, with nothing logged. An admin who sets
0expecting rescanning to stop will believe ithas stopped.
This adds a note pointing at
av_background_scan, which is the setting that actually disablesbackground scanning, and which the same section already documents.
Found while reviewing #14810, which documents the three background scanner passes and the
28-day rescan interval. Split out as its own PR because it is a distinct behaviour rather than
part of describing how the scanner works.
📌 Merge order
No constraint — verified. I tested #14810, #15538, #15539 and this PR merged together in
sequence: zero conflicts, in any order, and the combined file is
sphinx-lintclean. An earlierversion of this section asked for #15538 to be merged first; that turned out to be unnecessary, as
the three changes land in different parts of the file and git resolves them automatically.
🖼️ Screenshots
Text-only change, one
.. note::directive. No visual change and no new images.✅ Checklist
sphinx-lintis cleancodespell— not installed locally, please let CI confirm