##// END OF EJS Templates
permissions: flush all user permissions in case of default user permission changes....
permissions: flush all user permissions in case of default user permission changes. - this is a special case that due to inheritance we need to flush ALL users permissions - before the default permission changes didn't flush the caches result in cached values beeing present until the cache expires

File last commit:

r2846:bbc96602 default
r4187:0268c0ee stable
Show More
user_edit_caches.mako
41 lines | 1.1 KiB | application/x-mako | MakoHtmlLexer
<%namespace name="base" file="/base/base.mako"/>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Caches')}</h3>
</div>
<div class="panel-body">
<p>
Cache keys used for storing cached values of user permissions and authentication plugin cache.
Invalidating the cache will remove those entries.
</p>
<pre>
region: ${c.region.name}
backend: ${c.region.actual_backend.__class__}
store: ${c.region.actual_backend.get_store()}
% if c.user_keys:
${len(c.user_keys)} <a href="#showKeys" onclick="$('#show-keys').toggle()">${_('Show all')}</a>
<span id="show-keys" style="display: none">
% for k in c.user_keys:
- ${k}
% endfor
</span>
% else:
NO KEYS FOUND
% endif
</pre>
<p></p>
${h.secure_form(h.route_path('edit_user_caches_update', user_id=c.user.user_id), request=request)}
<div class="form">
<div class="fields">
${h.submit('reset_cache_%s' % c.user.user_id, _('Invalidate user cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate user cache')+"');")}
</div>
</div>
${h.end_form()}
</div>
</div>