Subversion Repositories SmartDukaan

Rev

Rev 5572 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <!-- Prevent MS Office toolbar from changing layout -->
    <meta http-equiv="imagetoolbar" content="false" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <title>Cache Statistics and admin | ${domain.name}</title>

   </head>
  <body>

    <noscript>
      <p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
    </noscript>
    <h1>Cache Statistics and Admin</h1>
    #set($cacheStats = $action.getCacheStats())
    #if($cacheStats && $cacheStats.size() != 0)
        <table cellpadding="0" cellspacing="0" border="1" width="100%" id="cacheStatsTable">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Eviction</th>
                    <th>Memory</th>
                    <th>Searches</th>
                    <th>Status</th>
                    <th>Avg Get Time</th>
                    <th>Avg Search Time</th>
                    <th>Hits</th>
                    <th>Misses</th>
                    <th>Hit Ratio</th>
                    <th>Eviction</th>
                    <th>Clear</th>
                </tr>
            </thead>
            <tbody>
        #foreach($cacheStat in $cacheStats)
            <tr>
                <td>$cacheStat.get("name")</td>
                <td>$cacheStat.get("eviction_policy")</td>
                <td>$cacheStat.get("memory_store_size")</td>
                <td>$cacheStat.get("searches_per_second")/sec</td>
                <td>$cacheStat.get("status")</td>
                <td>$cacheStat.get("avg_get_time")ms</td>
                <td>$cacheStat.get("avg_search_time")ms</td>
                <td>$cacheStat.get("cache_hits")</td>
                <td>$cacheStat.get("cache_misses")</td>
                <td>$cacheStat.get("cache_hit_ratio")%</td>
                <td>$cacheStat.get("eviction_count")</td>
                <td><a href="cache-admin/$cacheStat.get("name")?_method=delete">clear</a></td>
            </tr>
        #end
            </tbody>
        </table>
    #end

</body>
</html>