diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 10:11:16 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 10:11:16 +1000 |
| commit | 39be89ba4945238f6311454283a66930b94577be (patch) | |
| tree | 3e7998109bdfbeac8bb589b0c74e2c8ac3514667 /templates/mod/debug | |
| parent | ff4352d914f7fbedbbfd7068c4df5407b3ce1648 (diff) | |
?/debug/apc
Diffstat (limited to 'templates/mod/debug')
| -rw-r--r-- | templates/mod/debug/apc.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/mod/debug/apc.html b/templates/mod/debug/apc.html new file mode 100644 index 00000000..53f59eb0 --- /dev/null +++ b/templates/mod/debug/apc.html @@ -0,0 +1,23 @@ +<table class="modlog"> + <tr> + <th class="minimal">Key</th> + <th class="minimal">Hits</th> + <th class="minimal">Created</th> + <th class="minimal">Expires</th> + <th class="minimal">Size</th> + <th>Value</th> + </tr> + {% for var in cached_vars %} + <tr> + <td class="minimal">{{ var.key }}</td> + <td class="minimal">{{ var.num_hits }}</td> + <td class="minimal">{{ var.creation_time|ago }} ago</td> + <td class="minimal">{{ (var.creation_time + var.ttl)|until }} (ttl: {{ var.ttl }}s)</td> + <td class="minimal">{{ var.mem_size }} bytes</td> + <td style="word-wrap:break-word"> + {% set value = var.value|json_encode %} + <code>{{ value[:80]|e('html') }}{% if value|length > 80 %}…{% endif %}</code> + </td> + </tr> + {% endfor %} +</table>
\ No newline at end of file |
