Post refresh issue with comments
-
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 of99.745
instead of74.5
so it is immediately after Settings. After all, caching is sort of a set-and-forget type of plugin.Thanks,
Ron
- The topic ‘Post refresh issue with comments’ is closed to new replies.