• Resolved princedan

    (@princedan)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    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

    (@princedan)

    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

    (@liedekef)

    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

    (@princedan)

    Appreciate your reply. thank you.

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

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