lainchan/templates/mod/debug/apc.html

18 lines
629 B
HTML

<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>
</tr>
{% for var in cached_vars %}
<tr>
<td class="minimal">{% if var.key %}{{ var.key }}{% else %}{{ var.info }}{% endif %}</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: {{ (time() + var.ttl)|until }})</td>
<td class="minimal">{{ var.mem_size }} bytes</td>
</tr>
{% endfor %}
</table>