<%namespace name="base" file="/base/base.mako"/>

${base.gravatar_with_user(c.user.username, 16, tooltip=False, _class='pull-left')}  - ${_('Caches')}

Cache keys used for storing cached values of user permissions and authentication plugin cache. Invalidating the cache will remove those entries.

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)} ${_('Show all')}

% else:
 NO KEYS FOUND
% endif

${h.secure_form(h.route_path('edit_user_caches_update', user_id=c.user.user_id), request=request)}
${h.submit('reset_cache_%s' % c.user.user_id, _('Invalidate user cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate user cache')+"');")}
${h.end_form()}