# HG changeset patch # User Marcin Kuzminski # Date 2019-12-22 13:18:01 # Node ID 2517902972d30f206d0c640f80368d058e5e7952 # Parent b5c053a494c5206c672f2cd621eb79a78ce14df5 caches: introduce cache_ver for permissions in order to be able to invalidate caches if cached code changes diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -1230,7 +1230,7 @@ class AuthUser(object): @region.conditional_cache_on_arguments(namespace=cache_namespace_uid, condition=cache_on) - def compute_perm_tree(cache_name, + def compute_perm_tree(cache_name, cache_ver, user_id, scope, user_is_admin,user_inherit_default_permissions, explicit, algo, calculate_super_admin): return _cached_perms_data( @@ -1239,7 +1239,7 @@ class AuthUser(object): start = time.time() result = compute_perm_tree( - 'permissions', user_id, scope, user_is_admin, + 'permissions', 'v1', user_id, scope, user_is_admin, user_inherit_default_permissions, explicit, algo, calculate_super_admin)