${_('Invalidate Cache for Repository')}

${_('Manually invalidate the repository cache. On the next access a repository cache will be recreated.')}

${_('Cache purge can be automated by such api call. Can be called periodically in crontab etc.')}
${h.api_call_example(method='invalidate_cache', args={"repoid": c.repo_info.repo_name})}

${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), method='POST', request=request)}
${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
${h.end_form()}

${(_ungettext('List of repository caches (%(count)s entry)', 'List of repository caches (%(count)s entries)' ,len(c.repo_info.cache_keys)) % {'count': len(c.repo_info.cache_keys)})}

%for cache in c.repo_info.cache_keys: %endfor
${_('Prefix')} ${_('Key')} ${_('Active')}
${cache.get_prefix() or '-'} ${cache.cache_key} ${h.bool2icon(cache.cache_active)}