Changeset - 925d21b872e7
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2017-01-23 19:45:54
mads@kiilerich.com
config: fix bad beaker configuration parsing after 8377f2bfb88f
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -631,11 +631,12 @@ def setup_cache_regions(settings):
 
    # Find all regions, apply defaults, and apply to beaker
 
    if cache_settings['regions']:
 
        for region in cache_settings['regions'].split(','):
 
            region = region.strip() + '.'
 
            region = region.strip()
 
            prefix = region + '.'
 
            region_settings = {}
 
            for key in cache_settings:
 
                if key.startswith(region):
 
                    name = key[len(region):]
 
                if key.startswith(prefix):
 
                    name = key[len(prefix):]
 
                    region_settings[name] = cache_settings[key]
 
            region_settings.setdefault('expire',
 
                                       cache_settings.get('expire', '60'))
0 comments (0 inline, 0 general)