##// END OF EJS Templates
caches: set file based cache as default for vcsserver
marcink -
r776:c6b590ae default
parent child Browse files
Show More
@@ -35,9 +35,13 b' core.binary_dir = ""'
35 cache_dir = %(here)s/rcdev/data
35 cache_dir = %(here)s/rcdev/data
36
36
37 ## cache region for storing repo_objects cache
37 ## cache region for storing repo_objects cache
38 rc_cache.repo_object.backend = dogpile.cache.rc.memory_lru
38 rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace
39 ## cache auto-expires after N seconds
39 ## cache auto-expires after N seconds (2592000 == 30 days)
40 rc_cache.repo_object.expiration_time = 300
40 rc_cache.repo_object.expiration_time = 2592000
41
42 ## cache file store path, if empty set automatically to tmp dir location
43 #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db
44
41 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
45 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
42 rc_cache.repo_object.max_size = 100
46 rc_cache.repo_object.max_size = 100
43
47
@@ -56,9 +56,13 b' core.binary_dir = ""'
56 cache_dir = %(here)s/rcdev/data
56 cache_dir = %(here)s/rcdev/data
57
57
58 ## cache region for storing repo_objects cache
58 ## cache region for storing repo_objects cache
59 rc_cache.repo_object.backend = dogpile.cache.rc.memory_lru
59 rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace
60 ## cache auto-expires after N seconds
60 ## cache auto-expires after N seconds (2592000 == 30 days)
61 rc_cache.repo_object.expiration_time = 300
61 rc_cache.repo_object.expiration_time = 2592000
62
63 ## cache file store path, if empty set automatically to tmp dir location
64 #rc_cache.repo_object.arguments.filename = /tmp/vcsserver_cache.db
65
62 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
66 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
63 rc_cache.repo_object.max_size = 100
67 rc_cache.repo_object.max_size = 100
64
68
@@ -293,15 +293,15 b' class HTTPApplication(object):'
293 _string_setting(
293 _string_setting(
294 settings,
294 settings,
295 'rc_cache.repo_object.backend',
295 'rc_cache.repo_object.backend',
296 'dogpile.cache.rc.memory_lru')
296 'dogpile.cache.rc.file_namespace', lower=False)
297 _int_setting(
297 _int_setting(
298 settings,
298 settings,
299 'rc_cache.repo_object.expiration_time',
299 'rc_cache.repo_object.expiration_time',
300 300)
300 30 * 24 * 60 * 60)
301 _int_setting(
301 _string_setting(
302 settings,
302 settings,
303 'rc_cache.repo_object.max_size',
303 'rc_cache.repo_object.arguments.filename',
304 1024)
304 os.path.join(default_cache_dir, 'vcsserver_cache_1'), lower=False)
305
305
306 def _configure(self):
306 def _configure(self):
307 self.config.add_renderer(name='msgpack', factory=self._msgpack_renderer_factory)
307 self.config.add_renderer(name='msgpack', factory=self._msgpack_renderer_factory)
General Comments 0
You need to be logged in to leave comments. Login now