Title: Prevent specific elements from being cached
Last modified: January 12, 2021

---

# Prevent specific elements from being cached

 *  Resolved [woowaa](https://wordpress.org/support/users/soyoyo/)
 * (@soyoyo)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/prevent-specific-elements-from-being-cached/)
 * Hello.
    I would like to use the like button plugin for comments.
 * [https://wordpress.org/plugins/comments-like-dislike/](https://wordpress.org/plugins/comments-like-dislike/)
 * But when I use this plugin,
    Refresh does not increase the number of likes. If
   I clear the cache, the number is normally reflected. Is there a way to solve 
   this?
 * Prohibit the cache of some code, rewrite the cache every time someone votes, 
   etc.
    It’s going to be hard, right?

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/prevent-specific-elements-from-being-cached/#post-13921492)
 * Yes, unless you’re a PHP developer you won’t be able to get this working. There’s
   an example plugin included that will help you but you’re better off using a plugin
   that loads those elements through Javascript.
    [https://github.com/Automattic/wp-super-cache/blob/master/plugins/dynamic-cache-test.php](https://github.com/Automattic/wp-super-cache/blob/master/plugins/dynamic-cache-test.php)
 *  Thread Starter [woowaa](https://wordpress.org/support/users/soyoyo/)
 * (@soyoyo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/prevent-specific-elements-from-being-cached/#post-13924860)
 * Hello, thank you for your answer!
    I don’t understand at all now, but I’ll try
   slowly.

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

The topic ‘Prevent specific elements from being cached’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [woowaa](https://wordpress.org/support/users/soyoyo/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/prevent-specific-elements-from-being-cached/#post-13924860)
 * Status: resolved