Widget Output Cache

Description

Use PHP output buffering to extract widget output and store it into WordPress transients for faster retrieval. It also adds a checkbox to widget controls to exclude it from being cached.

It is a quick fix for bad behaving plugins that parse RSS feeds or call remote URLs on every page load.

FAQ

None.

Reviews

Extra speed boost

antonynz

Great plugin. Does it what is says and can really help give that extra speed boost. It even refreshes the cache when a widget is saved.

On first installation I would recommend increasing the cache time from the default 12 minutes, using the below filter:

add_filter( 'widget_output_cache_ttl', 'widget_cache_custom_ttl', 10, 2 );
function widget_cache_custom_ttl( $ttl ) {
$ttl = 3600 * 24; // 24 hours
return $ttl;
}

This increased our support sites performance

Skylightit

We use various plugins to produce our support site with 200+ pages, widgets that pull information from our sub sites at support.skylightit.com. We are using caching, varnish and various server side and WP plugins. Our issue was that some of the custom widgets were impacting the sites performance and this just improved it. So that you to the developers for awesome work.

Read all 5 reviews

Changelog

0.5.2

  • Tested with WordPress 4.5.2.

0.5.1

  • Fixed transient name generation issue.

0.5

  • Remove menu cache due to “active” menu item bug.
  • Allow individual widgets to be excluded from being cached.

0.4.4

  • Honor widgets being hidden using the widget_display_callback filter.

0.4.3

  • Add cache versioning for simple invalidation.

0.4.2

  • Store menu cache only if WordPress supports pre_wp_nav_menu.

0.4

  • Add support for menu output caching.

0.1

  • Initial release.

Upgrade Notice

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code