From b5ecc3924b1f28ae8a2743977b895ba3759f4dd7 Mon Sep 17 00:00:00 2001 From: kannibalox Date: Mon, 21 Aug 2023 14:48:32 -0400 Subject: [PATCH] Explain what `system.file_status_cache.prune` does --- Performance-Tuning.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Performance-Tuning.md b/Performance-Tuning.md index de3598a..e90dad8 100644 --- a/Performance-Tuning.md +++ b/Performance-Tuning.md @@ -209,8 +209,13 @@ Increase this interval, e.g. to 12 hours instead, if you think you're system is schedule2 = session_save, 1200, 43200, ((session.save)) ``` -(_What is this for??? `schedule2 = prune_file_status, 3600, 86400, ((system.file_status_cache.prune))`_) +#### File status cache +When using using the `load` commands, rtorrent caches the file's path and metadata, and avoids attempting to load any files that haven't changed. This is helpful when using watch directories that may have a large amount of torrent files that have already been loaded, but the only way to clear the cache is to clear it fully with the `system.file_status_cache.prune` command. The default schedule of 24 hours is good enough for most cases, but you may wish to tweak the timing. Note that the command itself is very quick to run, but any subsequent load commands may be slow while rTorrent re-reads all the data from scratch. + +``` +schedule2 = prune_file_status, 3600, 86400, ((system.file_status_cache.prune)) +``` ### Disable built-in DNS cache