• Resolved Slams

    (@slams)


    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!

    https://wordpress.org/plugins/widget-output-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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'])) {

    Plugin Author Kaspars

    (@kasparsd)

    @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.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘APC Object Cache WMOC YARPP’ is closed to new replies.