Title: Shortcode Cache
Last modified: April 23, 2021

---

# Shortcode Cache

 *  Resolved [princedan](https://wordpress.org/support/users/princedan/)
 * (@princedan)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-cache/)
 * Is there a way to avoid Event short code from caching?
 * My event shortcode appears in every page footer. I uses WP-rocket.
    Is there 
   a path or URL that can exclude or purge in the caching?
 * For example I exclude path /wp-includes/css/admin-bar.min.css to avoid caching
   the top admin black bar. Is there a path for Event Made Easy short code?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-cache/#post-14355665)
 * Not caching a css or js is something totally different than not caching rendered
   page content. The shortcode gets expanded by wordpress and then it gets cached
   by your caching plugin. I don’t think it is possible to exclude parts of a page
   to be cached. You should check with WP-Rocket if that’s at all possible. Otherwise,
   excluding the whole EME plugin folder is all you can do, but it won’t help you
   here I think. The only thing to do is not using a cache there, or I should switch[
   eme_events] to be totally ajaxified, which would allow it not to be cached.
 *  Thread Starter [princedan](https://wordpress.org/support/users/princedan/)
 * (@princedan)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-cache/#post-14356261)
 * Franky, thank you for the quick reply.
 * Another quick question.. Do you think if I put the short code into another page
   and lazyload via iframe.. do you think this will work?
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-cache/#post-14356412)
 * That iframe would need to be a very simple page without header/footer then (but
   still managed by WP in order to handle shortcode expansion).
    And then you probably
   might exclude that iframe link from your caching in WP rocket. But again: I think
   the people from WP Rocket are the ones to ask that, personally I avoid WP plugins
   for caching (only minify css/js if needed) and prefer webserver caching if really
   needed.
 *  Thread Starter [princedan](https://wordpress.org/support/users/princedan/)
 * (@princedan)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-cache/#post-14360196)
 * Appreciate your reply. thank you.

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

The topic ‘Shortcode Cache’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [princedan](https://wordpress.org/support/users/princedan/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/shortcode-cache/#post-14360196)
 * Status: resolved