You can view general cached output statistics in the server statistics log files.
Here is an example:
Output Cache Hits: 4 Output Cache Misses: 1
Hits represent the total hits from all the cached action outputs. Misses are the total number of times that an action had to put a new entry into the cache because either the value had not been cached yet or the cached value had expired.
You can get additional cache statistics using the getCacheStatistics() method. This method takes a boolean variable called resetCounters. If you set this variable to true
, the method will reset all of the individual cached action hit/miss values. The output of this method is an object containing all of the statistics for all the models in the cache that have action output caching enabled.
Here is an example of the XML output returned by this method:
<Created>Fri Apr 21 15:38:40 EDT 2002</Created>
<Expires>Fri Apr 21 15:48:40 EDT 2002</Expires>
Parent topic: Cache Control builder: wpf7