WordPress.org

Forums

wp_cache_post_change($post_id); REFRESH CACHE (1 post)

  1. D J
    Member
    Posted 2 years ago #

    Hi, I am using a plugin called wp_ratings, I am using the following to delete the cache for that page when a rating is made.

    if (function_exists ('wp_cache_post_change')) {
    $GLOBALS["super_cache_enabled"]=1;
    wp_cache_post_change($post_id);
    }

    Is this the same as refreshing the cache for that page instead of deleting it? I want that pages cache to be refreshed not deleted.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags