##// END OF EJS Templates
Added option to ini files for controlling full cache of VCS instances....
marcink -
r3025:f61adead beta
parent child Browse files
Show More
@@ -60,6 +60,7 b' cache_dir = %(here)s/data'
60 index_dir = %(here)s/data/index
60 index_dir = %(here)s/data/index
61 app_instance_uuid = rc-develop
61 app_instance_uuid = rc-develop
62 cut_off_limit = 256000
62 cut_off_limit = 256000
63 vcs_full_cache = True
63 force_https = false
64 force_https = false
64 commit_parse_limit = 25
65 commit_parse_limit = 25
65 use_gravatar = true
66 use_gravatar = true
@@ -60,6 +60,7 b' cache_dir = %(here)s/data'
60 index_dir = %(here)s/data/index
60 index_dir = %(here)s/data/index
61 app_instance_uuid = rc-production
61 app_instance_uuid = rc-production
62 cut_off_limit = 256000
62 cut_off_limit = 256000
63 vcs_full_cache = True
63 force_https = false
64 force_https = false
64 commit_parse_limit = 50
65 commit_parse_limit = 50
65 use_gravatar = true
66 use_gravatar = true
@@ -60,6 +60,7 b' cache_dir = %(here)s/data'
60 index_dir = %(here)s/data/index
60 index_dir = %(here)s/data/index
61 app_instance_uuid = ${app_instance_uuid}
61 app_instance_uuid = ${app_instance_uuid}
62 cut_off_limit = 256000
62 cut_off_limit = 256000
63 vcs_full_cache = True
63 force_https = false
64 force_https = false
64 commit_parse_limit = 50
65 commit_parse_limit = 50
65 use_gravatar = true
66 use_gravatar = true
@@ -941,7 +941,10 b' class Repository(Base, BaseModel):'
941
941
942 @LazyProperty
942 @LazyProperty
943 def scm_instance(self):
943 def scm_instance(self):
944 return self.scm_instance_cached()
944 import rhodecode
945 full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
946 if full_cache:
947 return self.scm_instance_cached()
945 return self.__get_instance()
948 return self.__get_instance()
946
949
947 def scm_instance_cached(self, cache_map=None):
950 def scm_instance_cached(self, cache_map=None):
General Comments 0
You need to be logged in to leave comments. Login now