We all know that caching is FTW. But, caching can be a nuisance when trying to develop or debug. That's where this plugin comes in.
You can bypass any get_transient() calls on a per page basis by clicking the link in the Admin Bar.
Features:
- Bypass Transients with a single click
- Supports Transients saved to the database
- Object Cache support - currently only tested with memecached
- Will automatically detected any new transients set.
- Debug Bar integration to provide details such as lists of known, found and bypassed transients.
Usage:
Install and activate the plugin as normal. Suspend transients will loading the appropriate class based on the results
wp_using_ext_object_cache()
. Anytime a transient set, the plugin will detect it and add it to the
known list.
Standard Transients ( saved to the database )
When activated, the plugin will retrieve any existing transients from the database and add them to the known transients list.
The Admin Bar will have two new buttons:
- Bypass Transients: bypasses known transients
- Scan Transients: reloads the transients from the database.
Object Cached Transients ( i.e memcached )
These transients are not stored in the database so the best way to get them is to use the Flush Transients button and reload the page to utilize the transient detection feature of the plugin.
It may require two page loads; One to detect and add the transient, and then a second to actually bypass it.
Admin Bar buttons:
- Bypass Transients: bypasses known transients
- Flush Transients: Calls wp_object_cache_flush() to invalidate the caches.
Disclaimer
This plugin should NOT be run in a production environment. It is meant for local and MAYBE staging development. By it's very nature this will slow
your site down.
Install this plugin as described in the
Codex