![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/wp-rocket/inc/3rd-party/plugins/rating/ |
<?php defined( 'ABSPATH' ) || exit; if ( defined( 'WP_POSTRATINGS_VERSION' ) ) : /** * Conflict with WP-PostRatings: Clear the cache when a post gets rated. * * @since 2.6.6 * * @param int $user_id user ID. * @param int $post_id post ID. */ function rocket_clear_cache_on_wp_postratings_rate( $user_id, $post_id ) { rocket_clean_post( $post_id ); } add_action( 'rate_post', 'rocket_clear_cache_on_wp_postratings_rate', 10, 2 ); endif;