Mirroring: Increase cache timeouts

Increase the default value of the index mirroring cache timeout
from 10 seconds to 5 minutes. Since version 3.1.5, mirror
cache invalidation is tied to index updates. This makes the
timeout less relevant. The purpose of the cache timeout is
now avoid runaway memory usage.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-11-28 04:13:48 -04:00
parent f9a0fb2e79
commit c6104e0080
2 changed files with 7 additions and 2 deletions

View File

@@ -92,6 +92,11 @@
address. Closes GitLab issue #522.
- Add support for subfolder scanning to watchfolders. Closes
GitLab issue #498.
- Increased the default value of the index mirroring cache timeout
from 10 seconds to 5 minutes. Since version 3.1.5, mirror
cache invalidation is tied to index updates. This makes the
timeout less relevant. The purpose of the cache timeout is
now avoid runaway memory usage.
3.1.9 (2018-11-01)
==================

View File

@@ -7,10 +7,10 @@ from smart_settings import Namespace
namespace = Namespace(name='mirroring', label=_('Mirroring'))
setting_document_lookup_cache_timeout = namespace.add_setting(
global_name='MIRRORING_DOCUMENT_CACHE_LOOKUP_TIMEOUT', default=10,
global_name='MIRRORING_DOCUMENT_CACHE_LOOKUP_TIMEOUT', default=300,
help_text=_('Time in seconds to cache the path lookup to a document.'),
)
setting_node_lookup_cache_timeout = namespace.add_setting(
global_name='MIRRORING_NODE_CACHE_LOOKUP_TIMEOUT', default=10,
global_name='MIRRORING_NODE_CACHE_LOOKUP_TIMEOUT', default=300,
help_text=_('Time in seconds to cache the path lookup to an index node.'),
)