Title: WP-PostRatings issue
Last modified: November 27, 2019

---

# WP-PostRatings issue

 *  Resolved [tabatha.j22](https://wordpress.org/support/users/tabathaj22/)
 * (@tabathaj22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/)
 * Hello,
 * First off, thanks for the great plugin.
 * I am having issues with WP-PostRatings By Lester ‘GaMerZ’ Chan. The ratings are
   not changing after being rated. We tried on different computers and browsers.
   I only made a few changes to your plugin settings after installing. I wanted 
   to just start enabling and disabling options but worried it might be a strain
   on our server due to constantly clearing and building the cache after each test.
 * **Page Caching**:
    Enable preload caching (turned on) Cache URL queries (turned
   off) Clear full cache when post/page is updated (turned on) Clear cache on comment
   post (turned on)
 * **Browser caching**:
    Not Activated.
 * **Asset Optimization**:
    Not Activated.
 * **Advanced tools**:
    Prefetch DNS Requests (recommended defaults). No other changes
   in this section.
 * Is there a setting that I should enable/disable to allow the ratings to be saved?
 * Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183173)
 * [@tabathaj22](https://wordpress.org/support/users/tabathaj22/),
 * I’m not sure how WP-PostRatings load the rating stats, but if they are not done
   via Ajax, then the stats will be cached. If there is no such option in WP-PostRatings,
   then the only way, unfortunately, is to not cache such pages.
 * Best regards,
    Anton
 *  Thread Starter [tabatha.j22](https://wordpress.org/support/users/tabathaj22/)
 * (@tabathaj22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183204)
 * Thanks for the quick reply.
 * WP-PostRatings does load using Ajax.
 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183240)
 * Then the rating should be updated. Can you provide some steps I can replicate
   this on a local install?
 * Best regards,
    Anton
 *  Thread Starter [tabatha.j22](https://wordpress.org/support/users/tabathaj22/)
 * (@tabathaj22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183313)
 * In my meta data template I enter:
    <?php if(function_exists(‘the_ratings’)) {
   the_ratings(); } ?>
 * This allows the ratings to appear in the meta data section of single pages and
   the archive pages.
 * The rating will update on the single post but not archive page.
 * Thanks again.
 * Would it be help if I send you a link to one of my pages to see?
 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183360)
 * [@tabathaj22](https://wordpress.org/support/users/tabathaj22/),
 * I’m afraid that the UI data that is generated by the_ratings() is not ajax based.
   That’s why it is getting cached, even though in the database the rating is updated
   via an ajax call.
 * You can add this to your functions.php file to trigger a cache purge for the 
   specific page, where the rating was updated:
 *     ```
       add_action( 'rate_post', function( $user_id, $post_id ) {
       	do_action( 'wphb_clear_page_cache', $post_id );
       }, 10, 2 );
       ```
   
 * Best regards,
    Anton
 *  Thread Starter [tabatha.j22](https://wordpress.org/support/users/tabathaj22/)
 * (@tabathaj22)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183373)
 * That worked. Thank you so much. I appreciate you taking the time find a fix. 
   You’re great at what you do.
 * Have a great day!
 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183378)
 * [@tabathaj22](https://wordpress.org/support/users/tabathaj22/),
 * Welcome. Glad I could help. I will mark this as resolved.
 * Best regards,
    Anton

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WP-PostRatings issue’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-issue/#post-12183378)
 * Status: resolved