• Resolved ronangelo

    (@ronangelo)


    Cached posts are no longer removed/refreshed upon add/edit/change-status of its comments. I can’t recall when or what version caused this. It’s a bit tricky to test since once a user comments, due to cookies, he won’t be able to see the cache in action. Hence, he won’t see the problem at all. Adding comments on one browser then loading the same post on another browser is necessary for checking the functionality.

    Strangely enough, the code from my old topic still works.

    On saveComment function, replacing this part:
    remove($path, self::getCacheGroups($opts), true);

    with this:
    remove($path, $opts['group'], true);

    Seems to fix the comment issues. Any ideas on why this is?

    A little request/recommendation:
    Not really a big deal but on the admin area, Gator Cache’s menu page link is in between User and Tools. It might be better to put the link after all the other default WP links. Maybe a value of 99.745 instead of 74.5 so it is immediately after Settings. After all, caching is sort of a set-and-forget type of plugin.

    Thanks,
    Ron

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author GatorDog

    (@gatordog)

    Thanks for the info. You’re right about the comments updating. It was trying to send the remove function an array instead of a string, this is why it works the way you modified it. However, it’s supposed to set multiple groups, if necessary, it’s actually calling the wrong function, should be calling removeGroups instead of remove. This has been fixed in the latest version, 2.0.7. Thanks again for letting me know about this issue. Btw, moved the menu link down a little so it’s after tools, before settings.

    Thread Starter ronangelo

    (@ronangelo)

    @gatordog
    Thanks for looking into it. But with the latest version (2.0.7), this:

    Fatal error: Call to undefined method CacheWrapper::removeGroup() in /gator-cache/gator-cache.php on line 774

    It’s removeGroups with an “s”, right?

    Plugin Author GatorDog

    (@gatordog)

    Yes, good catch, rolled this one out quickly didn’t test. Version 2.0.8, will be up in a few minutes. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post refresh issue with comments’ is closed to new replies.