Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Cache Status</h1>
- <table class="tables dataTables">
- <tr>
- <th>Cache</th>
- <th style="text-align : center;">Created Time</th>
- <th style="text-align : center;">Last Updated</th>
- <th style="text-align : center;">Last Hit</th>
- <th style="text-align : right;">Hit Count</th>
- <th style="text-align : right;">Hit Count %</th>
- <th style="text-align : right;">Size</th>
- </tr>
- <cfoutput>
- <cfloop index="cache" array="#cacheGetAllIds()#">
- <cfset metaData = cacheGetMetadata(cache)>
- <tr>
- <td>#cache#</td>
- <td style="text-align : center;">#LSTimeFormat(metadata.createdTime, "h:mm:ss")#</td>
- <td style="text-align : center;">#LSTimeFormat(metadata.lastHit, "h:mm:ss")#</td>
- <td style="text-align : center;">#LSTimeFormat(metadata.lastupdated, "h:mm:ss")#</td>
- <td style="text-align : right;">#metadata.hitcount#</td>
- <td style="text-align : right;"><cfset percent_of_hits = 100.0 * metadata.hitcount / metadata.cache_hitcount>
- #LSNumberFormat(percent_of_hits, '999.9')# %
- </td>
- <td style="text-align : right;">#LSNumberFormat(metadata.size)#</td>
- </tr>
- </cfloop>
- </cfoutput>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement