WordPress Cache Inspect

What it does

The aim of the plugin is to help people analyse the behaviour of the cache builtin to WordPress v2.0. It provides the administrator with a quick overview of how the cache is performming and allows the cache to be cleared manually from an admin page.

How it works

The plugin displays a small semi-transparent box in the top right hand corner of the page for all logged in users with the manage_cache capability. By default this capability is given to the Administrator user at plugin activation and removed from the Administrator user at plugin deactivation. Any user with the capabilty will also be able to clear the cache using the Manage … Cache page which appears in the administation interface.

Cold Cache Hits
This is the number of cached items that were loaded from disk.
Warm Cache Hits
This is the number of cached items accessed that were already in memory
Cache Misses
This is the number of items that had to be fetched from the db as they were not in the cache.
Loaded data
This lists the type and amount of data loaded into memory from that currently stored within the cache..

Known Issues

The plugin hooks into the builtin cache object and relys on accessing some of its private data to extract the statistics as such it is not compatible with any of the available cache alternatives.

Requirements

This plugin requires WordPress 2.0 or later to function as it relies on the existance of the cache and the ability to detect plugin activation/deactivation to register the new manage_cache role.

Download

The latest version of the plugin may be downloaded here: pjw-wp-cache-inspect.0.50.zip