APC Object Cache WMOC YARPP
-
Dear Author,
I’ve faced with issue when APC Object Cache plugin is enabled (stored object-cache.php into wp-content directory) and your plugin is enabled YARPP plugin show not relevant posts. When APCOC or WMOC is disabled – everithing is OK.
Can I exlude YARPP widget to be cached by your plugin? Or is there another way to deal with?
Thank you in advance!
-
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.
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.
#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/2I’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.)
The topic ‘APC Object Cache WMOC YARPP’ is closed to new replies.