##// END OF EJS Templates
cache-pages: hide keys by default so they produce less noise when viewing this page with a lot of keys
marcink -
r3889:8e80fcf9 default
parent child Browse files
Show More
@@ -29,12 +29,17 b''
29 <div class="panel panel-default">
29 <div class="panel panel-default">
30 <div class="panel-heading">
30 <div class="panel-heading">
31 <h3 class="panel-title">
31 <h3 class="panel-title">
32 ${(_ungettext('List of repository caches (%(count)s entry)', 'List of repository caches (%(count)s entries)' ,len(c.rhodecode_db_repo.cache_keys)) % {'count': len(c.rhodecode_db_repo.cache_keys)})}
32 ${_('Invalidation keys')}
33 </h3>
33 </h3>
34 </div>
34 </div>
35 <div class="panel-body">
35 <div class="panel-body">
36 <p>
37 Cache keys used to signal repository state changes after operations such as push, strip etc.
38 </p>
36 <div class="field" >
39 <div class="field">
37 <table class="rctable edit_cache">
40 <a href="#showKeys" onclick="$('#signal-keys').toggle()">${_('Show all')} ${len(c.rhodecode_db_repo.cache_keys)}</a>
41
42 <table class="rctable edit_cache" id="signal-keys" style="display: none">
38 <tr>
43 <tr>
39 <th>${_('Key')}</th>
44 <th>${_('Key')}</th>
40 <th>${_('State UID')}</th>
45 <th>${_('State UID')}</th>
@@ -67,26 +72,30 b''
67 Invalidating the cache will remove those entries.
72 Invalidating the cache will remove those entries.
68 </p>
73 </p>
69 <pre>
74 <pre>
70 region: ${c.region.name}
71 backend: ${c.region.actual_backend.__class__}
75 backend: ${c.region.actual_backend.__class__}
72 % if c.rhodecode_user.is_admin:
76 % if c.rhodecode_user.is_admin:
73 store: ${c.region.actual_backend.get_store()}
77 store: ${c.region.actual_backend.get_store()}
74 % else:
78 % else:
75 store: ${c.region.actual_backend.get_store().__class__}
79 store: ${c.region.actual_backend.get_store().__class__}
76 % endif
80 % endif
81 </pre>
77
82
78 % if c.repo_keys:
83 <div class="field">
79 ${len(c.repo_keys)} <a href="#showKeys" onclick="$('#show-keys').toggle()">${_('Show all')}</a>
84 <a href="#showKeys" onclick="$('#cache-keys').toggle()">${_('Show all')} ${len(c.repo_keys)}</a>
80 <span id="show-keys" style="display: none">
85
81 % for k in c.repo_keys:
86 <table class="rctable edit_cache" id="cache-keys" style="display: none">
82 - ${k}
87 <tr>
88 <th>${_('Key')}</th>
89 <th>${_('Region')}</th>
90 </tr>
91 %for cache_key in c.repo_keys:
92 <tr>
93 <td class="td-prefix"><code>${cache_key}</code></td>
94 <td class="td-cachekey">${c.region.name}</td>
95 </tr>
83 % endfor
96 %endfor
84 </span>
97 </table>
85 % else:
98 </div>
86 NO KEYS FOUND
87 % endif
88
89 </pre>
90
99
91 </div>
100 </div>
92 </div>
101 </div>
@@ -120,6 +129,9 b' store: ${c.region.actual_backend.get_sto'
120 <h3 class="panel-title">${_('Diff Caches')}</h3>
129 <h3 class="panel-title">${_('Diff Caches')}</h3>
121 </div>
130 </div>
122 <div class="panel-body">
131 <div class="panel-body">
132 <p>
133 Number and size of stored cached diff for commits and pull requests.
134 </p>
123 <table class="rctable edit_cache">
135 <table class="rctable edit_cache">
124 <tr>
136 <tr>
125 <td>${_('Cached diff name')}:</td>
137 <td>${_('Cached diff name')}:</td>
General Comments 0
You need to be logged in to leave comments. Login now