##// 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 29 <div class="panel panel-default">
30 30 <div class="panel-heading">
31 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 33 </h3>
34 34 </div>
35 35 <div class="panel-body">
36 <div class="field" >
37 <table class="rctable edit_cache">
36 <p>
37 Cache keys used to signal repository state changes after operations such as push, strip etc.
38 </p>
39 <div class="field">
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 43 <tr>
39 44 <th>${_('Key')}</th>
40 45 <th>${_('State UID')}</th>
@@ -61,32 +66,36 b''
61 66 </h3>
62 67 </div>
63 68 <div class="panel-body">
64 <p>
65 Cache keys used for storing cached values of repository stats,
66 file tree history and file tree search.
67 Invalidating the cache will remove those entries.
68 </p>
69 <p>
70 Cache keys used for storing cached values of repository stats,
71 file tree history and file tree search.
72 Invalidating the cache will remove those entries.
73 </p>
69 74 <pre>
70 region: ${c.region.name}
71 75 backend: ${c.region.actual_backend.__class__}
72 76 % if c.rhodecode_user.is_admin:
73 77 store: ${c.region.actual_backend.get_store()}
74 78 % else:
75 79 store: ${c.region.actual_backend.get_store().__class__}
76 80 % endif
81 </pre>
77 82
78 % if c.repo_keys:
79 ${len(c.repo_keys)} <a href="#showKeys" onclick="$('#show-keys').toggle()">${_('Show all')}</a>
80 <span id="show-keys" style="display: none">
81 % for k in c.repo_keys:
82 - ${k}
83 % endfor
84 </span>
85 % else:
86 NO KEYS FOUND
87 % endif
83 <div class="field">
84 <a href="#showKeys" onclick="$('#cache-keys').toggle()">${_('Show all')} ${len(c.repo_keys)}</a>
88 85
89 </pre>
86 <table class="rctable edit_cache" id="cache-keys" style="display: none">
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>
96 %endfor
97 </table>
98 </div>
90 99
91 100 </div>
92 101 </div>
@@ -120,6 +129,9 b' store: ${c.region.actual_backend.get_sto'
120 129 <h3 class="panel-title">${_('Diff Caches')}</h3>
121 130 </div>
122 131 <div class="panel-body">
132 <p>
133 Number and size of stored cached diff for commits and pull requests.
134 </p>
123 135 <table class="rctable edit_cache">
124 136 <tr>
125 137 <td>${_('Cached diff name')}:</td>
General Comments 0
You need to be logged in to leave comments. Login now