Commit 903a34e4 authored by Ivan Tyagov's avatar Ivan Tyagov

Add dedicated cache statistics page.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16846 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8dcfc6cb
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var manage_tabs> <dtml-var manage_tabs>
<h3>Cache memory usage (in bytes)</h3>
<dtml-var expr="getCacheTotalMemorySize()">
<h3>Cache invalidation</h3> <h3>Cache invalidation</h3>
<form action="clearAllCache" method="POST"> <form action="clearAllCache" method="POST">
<input type="submit" value="Clear all cache factories"/> <input type="submit" value="Clear all cache factories"/>
......
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h3>Cache memory statistics (in bytes)</h3>
<dtml-with "_.namespace(**getCacheTotalMemorySize())">
<h4> Total cache memory used <dtml-var total_size> </h4>
<dtml-in expr="stats.keys()">
<h5><dtml-var sequence-item></h5>
<dtml-with "_.namespace(**stats[_['sequence-item']])">
<table border="1">
<tr><td> Mem used</td><td> Cache key </td></tr>
<dtml-in expr="cp_cache_keys_total_size.keys()">
<tr>
<td><dtml-var expr="cp_cache_keys_total_size[_['sequence-item']]"></td>
<td><dtml-var sequence-item></td>
</tr>
</dtml-in>
</table>
Total : <b><dtml-var total></b><br/>
</dtml-with>
</dtml-in>
</dtml-with>
<dtml-var manage_page_footer>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment