def get_cache_durations():
 return getattr(settings, 'CMS_CACHE_DURATIONS', {'menus': (60 * 60), 'content': 60, 'permissions': (60 * 60)})

def get_cache_durations ( ) : return getattr ( settings , 'CMS_CACHE_DURATIONS' , { 'menus' : ( 60 * 60 ) , 'content' : 60 , 'permissions' : ( 60 * 60 ) } )
returns the setting: cms_cache_durations or the defaults .