caches: introduce cache_ver for permissions in order to be able to invalidate caches if cached code changes
marcink -
r4155:25179029 default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -1230,7 +1230,7
1230
1230
1231 @region.conditional_cache_on_arguments(namespace=cache_namespace_uid,
1231 @region.conditional_cache_on_arguments(namespace=cache_namespace_uid,
1232 condition=cache_on)
1232 condition=cache_on)
1233 def compute_perm_tree(cache_name,
1233 def compute_perm_tree(cache_name, cache_ver,
1234 user_id, scope, user_is_admin,user_inherit_default_permissions,
1234 user_id, scope, user_is_admin,user_inherit_default_permissions,
1235 explicit, algo, calculate_super_admin):
1235 explicit, algo, calculate_super_admin):
1236 return _cached_perms_data(
1236 return _cached_perms_data(
@@ -1239,7 +1239,7
1239
1239
1240 start = time.time()
1240 start = time.time()
1241 result = compute_perm_tree(
1241 result = compute_perm_tree(
1242 'permissions', user_id, scope, user_is_admin,
1242 'permissions', 'v1', user_id, scope, user_is_admin,
1243 user_inherit_default_permissions, explicit, algo,
1243 user_inherit_default_permissions, explicit, algo,
1244 calculate_super_admin)
1244 calculate_super_admin)
1245
1245
Comments 0
You need to be logged in to leave comments. Login now