Right now, there is no way to do this. But you can use the WP Widget Cache plugin. It has more options and you can select caching per widget.
https://wordpress.org/plugins/wp-widget-cache/
Thread Starter
Slams
(@slams)
Thank you for link.
I’ve managed my issue next way:
I’ve modified line 28:
if ( empty( $cached_widget ) || isset($instance['template'])) {
@slams, version 0.5 is out and all widget controls now have a checkbox to exclude it from being cached.
Thread Starter
Slams
(@slams)
#Kaspars,
I’hve saw! Thank you for update! But why you disable menu cache? Is it possible to leave it as an option? I’m planing to write some js to compare browser adress bar and menu and add active class to the actual item.
Your plugin have greatly reduced load time so I’m planing to use all its features. 🙂
Slams,
Menu cache is disabled because it couldn’t set the active class for the current menu item properly. There is some discussion here:
https://github.com/kasparsd/widget-output-cache/issues/2
I’m working on a fix for this in my fork of the plugin
If you write a javascript function to proplerly set the active class, feel free to share it. (It would have to be pure javascript without dependencies, no jQuery.)