##// END OF EJS Templates
caches: optimized defaults for safer more reliable behaviour
super-admin -
r4720:69c58338 default
parent child Browse files
Show More
@@ -33,6 +33,8 b' from dogpile.cache.backends import redis'
33 33 from dogpile.cache.backends.file import NO_VALUE, compat, FileLock
34 34 from dogpile.cache.util import memoized_property
35 35
36 from pyramid.settings import asbool
37
36 38 from rhodecode.lib.memory_lru_dict import LRUDict, LRUDictDebug
37 39
38 40
@@ -229,11 +231,11 b' class BaseRedisBackend(redis_backend.Red'
229 231 def __init__(self, arguments):
230 232 super(BaseRedisBackend, self).__init__(arguments)
231 233 self._lock_timeout = self.lock_timeout
232 self._lock_auto_renewal = arguments.pop("lock_auto_renewal", False)
234 self._lock_auto_renewal = asbool(arguments.pop("lock_auto_renewal", True))
233 235
234 236 if self._lock_auto_renewal and not self._lock_timeout:
235 237 # set default timeout for auto_renewal
236 self._lock_timeout = 60
238 self._lock_timeout = 30
237 239
238 240 def _create_client(self):
239 241 args = {}
General Comments 0
You need to be logged in to leave comments. Login now