Show More
@@ -35,9 +35,13 b' core.binary_dir = ""' | |||
|
35 | 35 | cache_dir = %(here)s/rcdev/data |
|
36 | 36 | |
|
37 | 37 | ## cache region for storing repo_objects cache |
|
38 |
rc_cache.repo_object.backend = dogpile.cache.rc. |
|
|
39 | ## cache auto-expires after N seconds | |
|
40 |
rc_cache.repo_object.expiration_time = |
|
|
38 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
|
39 | ## cache auto-expires after N seconds (2592000 == 30 days) | |
|
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 | 45 | ## max size of LRU, old values will be discarded if the size of cache reaches max_size |
|
42 | 46 | rc_cache.repo_object.max_size = 100 |
|
43 | 47 |
@@ -56,9 +56,13 b' core.binary_dir = ""' | |||
|
56 | 56 | cache_dir = %(here)s/rcdev/data |
|
57 | 57 | |
|
58 | 58 | ## cache region for storing repo_objects cache |
|
59 |
rc_cache.repo_object.backend = dogpile.cache.rc. |
|
|
60 | ## cache auto-expires after N seconds | |
|
61 |
rc_cache.repo_object.expiration_time = |
|
|
59 | rc_cache.repo_object.backend = dogpile.cache.rc.file_namespace | |
|
60 | ## cache auto-expires after N seconds (2592000 == 30 days) | |
|
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 | 66 | ## max size of LRU, old values will be discarded if the size of cache reaches max_size |
|
63 | 67 | rc_cache.repo_object.max_size = 100 |
|
64 | 68 |
@@ -293,15 +293,15 b' class HTTPApplication(object):' | |||
|
293 | 293 | _string_setting( |
|
294 | 294 | settings, |
|
295 | 295 | 'rc_cache.repo_object.backend', |
|
296 |
'dogpile.cache.rc. |
|
|
296 | 'dogpile.cache.rc.file_namespace', lower=False) | |
|
297 | 297 | _int_setting( |
|
298 | 298 | settings, |
|
299 | 299 | 'rc_cache.repo_object.expiration_time', |
|
300 | 300) | |
|
301 |
_ |
|
|
300 | 30 * 24 * 60 * 60) | |
|
301 | _string_setting( | |
|
302 | 302 | settings, |
|
303 |
'rc_cache.repo_object. |
|
|
304 | 1024) | |
|
303 | 'rc_cache.repo_object.arguments.filename', | |
|
304 | os.path.join(default_cache_dir, 'vcsserver_cache_1'), lower=False) | |
|
305 | 305 | |
|
306 | 306 | def _configure(self): |
|
307 | 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