Easily cache widget output for better performance.
This plugin does not cache widgets automatically! You must define which widgets get cached.
Add a widget to the cache and designate which actions the cache gets flushed on.
$widget_cache = Voce_Widget_Cache::GetInstance(); $widget_cache->cache_widget( 'Archive_Links_Widget', array( 'save_post' ) ); $widget_cache->cache_widget( 'WP_Widget_Recent_Posts' );
voce-widget-cache
to the /wp-content/plugins/
directoryUsage:
$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( ‘Archive_Links_Widget’, array( ‘save_post’ ) );
$widget_cache->cache_widget( ‘WP_Widget_Recent_Posts’ );
The caching is not automatic. Refer to the documentation to see how to implement caching on widgets.
You could use a plugin like WPDB Profiling