##// END OF EJS Templates
tests: updated test ini and configs for setting custom ini files
tests: updated test ini and configs for setting custom ini files

File last commit:

r5289:96e21ab8 default
r5391:1a75a34b default
Show More
repo_edit_caches.mako
157 lines | 4.9 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Invalidate Cache for Repository')}</h3>
</div>
<div class="panel-body">
repo-caches: moved view into pyramid.
r1722
<h4>${_('Manually invalidate the repository cache. On the next access a repository cache will be recreated.')}</h4>
<p>
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 ${_('Cache purge can be automated by such api call. Can be called periodically in crontab etc.')}
repo-caches: moved view into pyramid.
r1722 <br/>
<code>
apps: removed deprecated usage of c.repo_info
r2081 ${h.api_call_example(method='invalidate_cache', args={"repoid": c.rhodecode_db_repo.repo_name})}
repo-caches: moved view into pyramid.
r1722 </code>
</p>
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), request=request)}
repo-caches: moved view into pyramid.
r1722 <div class="form">
templating: use .mako as extensions for template files.
r1282 <div class="fields">
templates: switched most of confirm dialogs to sweetalert2
r4313 <input class="btn btn-small" id="reset_cache_${c.rhodecode_db_repo.repo_id}"
name="reset_cache_${c.rhodecode_db_repo.repo_id}"
onclick="submitConfirm(event, this, _gettext('Confirm to invalidate repository cache'), _gettext('Invalidate Cache'), '${c.rhodecode_db_repo.repo_name}')"
type="submit" value="${_('Invalidate repository cache')}"
>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
${h.end_form()}
repo-caches: moved view into pyramid.
r1722
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 ${_('Invalidation keys')}
templating: use .mako as extensions for template files.
r1282 </h3>
</div>
<div class="panel-body">
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 <p>
Cache keys used to signal repository state changes after operations such as push, strip etc.
</p>
<div class="field">
feat(caches): cache page shows all keys since there should be only 1 per repo now
r5289 <table class="rctable edit_cache" id="signal-keys">
templating: use .mako as extensions for template files.
r1282 <tr>
<th>${_('Key')}</th>
caches: updated cache backend to new vcsserver caches implementation.
r3848 <th>${_('State UID')}</th>
caches: new cache context managers....
r2932 <th>${_('Namespace')}</th>
templating: use .mako as extensions for template files.
r1282 <th>${_('Active')}</th>
</tr>
apps: removed deprecated usage of c.repo_info
r2081 %for cache in c.rhodecode_db_repo.cache_keys:
templating: use .mako as extensions for template files.
r1282 <tr>
caches: new cache context managers....
r2932 <td class="td-prefix"><code>${cache.cache_key}</code></td>
caches: updated cache backend to new vcsserver caches implementation.
r3848 <td class="td-cachekey"><code>${cache.cache_state_uid}</code></td>
caches: new cache context managers....
r2932 <td class="td-cachekey"><code>${cache.cache_args}</code></td>
templating: use .mako as extensions for template files.
r1282 <td class="td-active">${h.bool2icon(cache.cache_active)}</td>
</tr>
%endfor
</table>
</div>
</div>
</div>
diff-caches: show count and size in caches view per repository.
r2687
shadow-repos: show count of shadow repos for each repo in caches view.
r2811 <div class="panel panel-default">
<div class="panel-heading">
caches: don't use beaker for file caches anymore
r2846 <h3 class="panel-title">
${_('Cache keys')}
</h3>
</div>
<div class="panel-body">
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 <p>
Cache keys used for storing cached values of repository stats,
file tree history and file tree search.
Invalidating the cache will remove those entries.
</p>
caches: don't use beaker for file caches anymore
r2846 <pre>
backend: ${c.region.actual_backend.__class__}
caches: show full paths for super-admin, hide paths for regular users for security.
r3084 % if c.rhodecode_user.is_admin:
caches: don't use beaker for file caches anymore
r2846 store: ${c.region.actual_backend.get_store()}
caches: show full paths for super-admin, hide paths for regular users for security.
r3084 % else:
store: ${c.region.actual_backend.get_store().__class__}
% endif
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 </pre>
caches: don't use beaker for file caches anymore
r2846
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 <div class="field">
<a href="#showKeys" onclick="$('#cache-keys').toggle()">${_('Show all')} ${len(c.repo_keys)}</a>
caches: don't use beaker for file caches anymore
r2846
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 <table class="rctable edit_cache" id="cache-keys" style="display: none">
<tr>
<th>${_('Key')}</th>
<th>${_('Region')}</th>
</tr>
%for cache_key in c.repo_keys:
<tr>
<td class="td-prefix"><code>${cache_key}</code></td>
<td class="td-cachekey">${c.region.name}</td>
</tr>
%endfor
</table>
</div>
caches: don't use beaker for file caches anymore
r2846
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
shadow-repos: show count of shadow repos for each repo in caches view.
r2811 <h3 class="panel-title">${_('Shadow Repositories')}</h3>
</div>
<div class="panel-body">
<table class="rctable edit_cache">
% if c.shadow_repos:
% for shadow_repo in c.shadow_repos:
<tr>
<td>${shadow_repo}</td>
</tr>
% endfor
% else:
<tr>
<td>${_('No Shadow repositories exist for this repository.')}</td>
</tr>
% endif
</table>
</div>
</div>
diff-caches: show count and size in caches view per repository.
r2687
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Diff Caches')}</h3>
</div>
<div class="panel-body">
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
r3889 <p>
Number and size of stored cached diff for commits and pull requests.
</p>
diff-caches: show count and size in caches view per repository.
r2687 <table class="rctable edit_cache">
<tr>
diff-cache: show safe relative path where cached diffs are stored.
r2688 <td>${_('Cached diff name')}:</td>
caches: show full paths for super-admin, hide paths for regular users for security.
r3084 % if c.rhodecode_user.is_admin:
<td>${c.rhodecode_db_repo.cached_diffs_dir}</td>
% else:
<td>${c.rhodecode_db_repo.cached_diffs_relative_dir}</td>
% endif
diff-cache: show safe relative path where cached diffs are stored.
r2688 </tr>
<tr>
diff-caches: show count and size in caches view per repository.
r2687 <td>${_('Cached diff files')}:</td>
<td>${c.cached_diff_count}</td>
</tr>
<tr>
<td>${_('Cached diff size')}:</td>
<td>${h.format_byte_size(c.cached_diff_size)}</td>
</tr>
</table>
</div>
</div>