Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter arvincastro

    (@arvincastro)

    Solve it, hehe. Just added this code to my theme’s functions.php file.

    add_filter("comment_post_redirect", "ws_plugin__qcache_clear_on_post_page_comment", 10, 2);
    function ws_plugin__qcache_clear_on_post_page_comment($location, $comment) {
    	ws_plugin__qcache_clear_on_post_page_creations_deletions($comment->comment_post_ID);
    	return $location;
    }

    then edited wp-content/plugins/quick-cache/includes/functions/clearing-routines.inc.php, edited the ws_plugin__qcache_clear_on_post_page_creations_deletions function:

    Changed line 34 to (Quick Cache v2.2.7):

    if (in_array ($pagenow, ($pages = array ("edit.php", "post.php", "post-new.php", "wp-comments-post.php"))))

    *added ‘wp-comments-post.php’ in the whitelist
    This will clear the cache for this specific post. and, depending on settings, will clear the cache for the home page also.

    i try this and in my case just dont work. i got lots of errors when i post a news comment.

    Thread Starter arvincastro

    (@arvincastro)

    The function to clear the cache was changed in the recent version of the plugin. And I haven’t found a solution yet for it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Quick Cache ( A WP Super Cache Alternative )] Clear a post's cache when someone commen’ is closed to new replies.