# HG changeset patch # User Marcin Kuzminski # Date 2011-02-12 12:56:28 # Node ID 2e9f2bd28143da67ffa4098e990d65851ae4f8a6 # Parent d1009f6bbc9c5a6fd052ff6bc6bc46fe891c9292 fixed add cache defaults missing data_dir diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -506,6 +506,9 @@ def add_cache(settings): 60)) region_settings.setdefault('lock_dir', cache_settings.get('lock_dir')) + region_settings.setdefault('data_dir', + cache_settings.get('data_dir')) + if 'type' not in region_settings: region_settings['type'] = cache_settings.get('type', 'memory')