Title: Exclude rating plugin from cache
Last modified: February 14, 2020

---

# Exclude rating plugin from cache

 *  Resolved [converted](https://wordpress.org/support/users/converted/)
 * (@converted)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/)
 * Hello,
 * How to exclude rating plugin from cache? I mean this plugin “Rate my post” [https://wordpress.org/plugins/rate-my-post/](https://wordpress.org/plugins/rate-my-post/)
 * I need to exclude this plugin from caching because one day after clearing the
   cache when you click on the rating it shows “invalid nonce”.

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12436170)
 * Hi,
 * From that plugin’s page , it shows
 * > SHORTCODES
   >  [ratemypost] – embeds rating widget
   > [ratemypost-result] – embeds results widget
   > It is also possible to embed a rating of whichever post by passing the id of
   > the post to the shortcode.
   > [ratemypost id=”1″] – embeds rating widget for the post with the id of 1
   > [ratemypost-result id=”1″] – embeds results widget for the post with the id
   > of 1
 * If you are using shortcode for it , then please enable ESI , and set those shortcode
   to ESI block
 * e.g.
 * change
 * `[ratemypost id=”1″]`
 * to
 * `[esi ratemypost id=”1″ ttl="0"]`
 * Best regards,
 *  Thread Starter [converted](https://wordpress.org/support/users/converted/)
 * (@converted)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12436222)
 * Ok thank you for your reply but i have the ratings from this plugin almost on
   every page and post, how to catch them all? Anyway i don’t use widgets with this
   plugin.
    -  This reply was modified 6 years, 3 months ago by [converted](https://wordpress.org/support/users/converted/).
    -  This reply was modified 6 years, 3 months ago by [converted](https://wordpress.org/support/users/converted/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12436231)
 * Hi,
 * You can try directly , and bulk change it in database with phpmyadmin or something.
 * but please do make backup first.
 * Best regards,
 *  Thread Starter [converted](https://wordpress.org/support/users/converted/)
 * (@converted)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12439893)
 * I used this tag [ratemypost] so now should i put [esi ratemypost ttl=”0″] ?
 * I can’t find this ESI block where it is. I have LiteSpeed Cache Plugin installed.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12440148)
 * Hi,
 * Yes , repalce [ratemypost] to [esi ratemypost ttl=”0″]
 * please check [this](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:configuration:esi)
   for how to enable ESI feature
 *  Thread Starter [converted](https://wordpress.org/support/users/converted/)
 * (@converted)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12444672)
 * Hello again, i put shortcode [esi ratemypost ttl=”0″] on a few pages to check
   and passed one day and invalid nonce appeared again.
 * If anything, I should exclude nonce from cache. How to do it?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12445911)
 * Hi,
 * For nonce issue, you will need to check your plugin code ,
 * search for key word **wp_create_nonce**
 * you should see a line like this
 * **wp_create_nonce( ‘example’ );**
 * when you find it , please add this line before it
 * **LiteSpeed_Cache_API::nonce_action( ‘example’ )**
 * Best regards,

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

The topic ‘Exclude rating plugin from cache’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-rating-plugin-from-cache/#post-12445911)
 * Status: resolved