Support » Plugin: WP Super Cache » Dynamic content caching

  • I have a woocommerce store that shows estimate delivery date depending on the shipping region user is browsing the website. The value is called via shortcode in functions.php . The problem is that when cached all users see the same estimate.

    Is there a workaround to instruct wp super cache not to cache specific shortcodes? Or any other workaround? I googled and some suggest calling the shortcode via Ajax, but solutions seems heavy and involves theme files modification and not sure if will be able to make it work due to my low technical skills…

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • It might be easier to just disable caching on those pages. If you define the constant DONOTCACHEPAGE when those pages are shown the page won’t be cached.

    You can have dynamic caching but it’s not simple. There’s an example plugin in wp-super-cache/plugins/.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic content caching’ is closed to new replies.