Support » Plugin: LiteSpeed Cache » Purge Post Cache for WP PostRatings Plugin

  • Resolved Zalium

    (@zalium)


    Hi, Have recently implemented Litespeed server with LScache and happy with the results. The only incompatibility I have is with the WP PostRatings Plugin, which according to the author does not work well with caching plugins although it did work with my previous caching plugin and the author provides a solution for WP-Fastest Cache:

    add_action( 'rate_post', 'wp_postratings_clear_fastest_cache', 10, 4 );
    function wp_postratings_clear_fastest_cache( $post_id, $post_ratings_users, $post_ratings_score, $post_ratings_average ) {
        if ( isset( $GLOBALS['wp_fastest_cache'] ) && method_exists( $GLOBALS['wp_fastest_cache'], 'singleDeleteCache' ) ) {
            $GLOBALS['wp_fastest_cache']->singleDeleteCache( false, $post_id );
        }
    }

    Any suggestions would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Purge Post Cache for WP PostRatings Plugin’ is closed to new replies.