Wordpress LScache Plugin: Exclude rating plugin from cache
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, How to exclude rating plugin from cache? I mean this plugin 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 . Hi, From that plugins 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, 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 dont use widgets with this plugin. Hi, You can try directly , and bulk change it in database with phpmyadmin or something. but please do make backup first. Best regards, I used this tag [ratemypost] so now should i put [esi ratemypost ttl= 0 ] ? I cant find this ESI block where it is. I have LiteSpeed Cache Plugin installed. Hi, Yes , repalce [ratemypost] to [esi ratemypost ttl= 0 ] please check this for how to enable ESI feature 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? 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,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference