##// END OF EJS Templates
fixed error message about cache settings
marcink -
r610:b0a411f5 default
parent child Browse files
Show More
@@ -109,11 +109,12 b' def query_callable(manager):'
109 109 return query
110 110
111 111 def get_cache_region(name, region):
112 if region not in beaker.cache.cache_regions:
113 raise BeakerException('Cache region not configured: %s' % region)
114 kw = beaker.cache.cache_regions[region]
115 return beaker.cache.Cache._get_cache(name, kw)
116
112 if region not in beaker.cache.cache_regions:
113 raise BeakerException('Cache region not configured: %s'
114 'Check if proper cache settings are in the .ini files' % region)
115 kw = beaker.cache.cache_regions[region]
116 return beaker.cache.Cache._get_cache(name, kw)
117
117 118 def _get_cache_parameters(query):
118 119 """For a query with cache_region and cache_namespace configured,
119 120 return the correspoinding Cache instance and cache key, based
General Comments 0
You need to be logged in to leave comments. Login now