HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wp-rocket-old/inc/3rd-party/plugins/rating/wp-postratings.php
<?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;