Title: How to exclude shortcode from cache
Last modified: April 8, 2022

---

# How to exclude shortcode from cache

 *  [perfectword7](https://wordpress.org/support/users/perfectword7/)
 * (@perfectword7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/)
 * Howdy,
 * I am attempted to implement [https://wordpress.org/plugins/love-me/](https://wordpress.org/plugins/love-me/)
   on our blog, but functionality of the like button and like count it produces 
   does not work on cached pages.
 * The plugin can automatically place the like button either above or below the 
   blog content, or it can be placed using a shortcode.
 * Is there a way to exclude the functionality of the plugin or shortcode from the
   cache? If so, how?
 * Thanks!

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15549980)
 * [@perfectword7](https://wordpress.org/support/users/perfectword7/) – the best
   way is to insert the like button and count using Javascript because this plugin
   caches the entire page, but Javascript can make requests that aren’t cached.
   
   The other way is with dynamic caching but it is not easy at all. A description
   of how can be found here: [https://github.com/Automattic/wp-super-cache/wiki/How-do-I-not-cache-part-of-my-page%3F](https://github.com/Automattic/wp-super-cache/wiki/How-do-I-not-cache-part-of-my-page%3F)
 *  Thread Starter [perfectword7](https://wordpress.org/support/users/perfectword7/)
 * (@perfectword7)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15551309)
 * Thank you. Can you please advise how to do this with Javascript?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15551348)
 * You could try the ratings that Crowdsignal.com offer. They do five star or nero
   ratings that uses Javascript and isn’t cached by this plugin.
 * (FYI – I work on Crowdsignal)
 *  Thread Starter [perfectword7](https://wordpress.org/support/users/perfectword7/)
 * (@perfectword7)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15551448)
 * I will check it out. Thank you.
 * So there’s no way to do it with the plugin I specified?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15551482)
 * I don’t know. I haven’t used that plugin. The author of that plugin, or anyone
   who knew how, could modify it to use Javascript to display the like button and
   ratings. It would be a huge modification however.
 *  Thread Starter [perfectword7](https://wordpress.org/support/users/perfectword7/)
 * (@perfectword7)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15551572)
 * Got it. Thank you.
 * So if I were dead set on trying to use that plugin, I would attempt to implement
   the “Shortcodes and Output Buffers” using the plugin’s provided shortcode? [https://github.com/Automattic/wp-super-cache/wiki/How-do-I-not-cache-part-of-my-page%3F#shortcodes-and-output-buffers](https://github.com/Automattic/wp-super-cache/wiki/How-do-I-not-cache-part-of-my-page%3F#shortcodes-and-output-buffers)
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15564306)
 * Yes, that’s it. Good luck!

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

The topic ‘How to exclude shortcode from cache’ is closed to new replies.

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

 * 7 replies
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-shortcode-from-cache/#post-15564306)
 * Status: not resolved