As the caching usually doesn’t work on parts of the page, but on the whole page, you can’t have it just not cache that specific part (well, you could use ESI/Edge Side Includes, but that’s not an option for all implementations).
What you could to is write a hook that checks whether these shortcodes are used and adjust headers indicating that it might not be cached or only cached up to X seconds (with the indicated max lifetime falling on the date and time you want to show the changed content).
Or you could parse the shortcodes when posts are updated and add WP cronjobs that will silently update the post. You’ll most likely have some sort of purging mechanism in your cache implementation that removes the cached result if the post is updated.
Related Posts:
- How can I render shortcode so that its not cached by Caching plugins?
- How to cache a custom API call?
- Is this Solution for Caches vs Cookies Going to Get Me in Trouble?
- Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
- Disable WordPress cache programmatically on a request [closed]
- WordPress transients for a shortcode
- What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?
- Will setcookie work if there is a cache plugin installed?
- Shortcode Strategy
- How to add support for caching plugins for my own plugin?
- Pre-Caching and Googlebot
- Impossible to display modification in shortcode code?
- WP Super Cache versus W3 Total Cache [closed]
- How to make WordPress ignore GET parameters when caching pages?
- convert it into short code & explan how? [closed]
- Enqueue Scripts / Styles when shortcode is present
- Conditionally Loading JavaScript/CSS for Shortcodes
- What does extract( shortcode_atts( array( do?
- W3 total cache – cache refresh programmatically [closed]
- How do I escape a ‘]’ in a short code?
- Pass boolean value in shortcode
- Show shortcode without executing it
- Shortcode always displaying at the top of the page
- Redirect function inside a Shortcode
- How to create a shortcode with 1 parameter (atts)
- Best way to show Dynamic Content on a Cached WordPress Site?
- how to show the syntax of a shortcode
- Custom shortcode being executed when saving page in wp-admin
- Change appearance of shortcode text inside editor
- current_shortcode() – detect currently used shortcode
- shortcodes output before content [duplicate]
- WordPress plugin shortcode not working
- How to add stylesheets only to pages with specific shortcode?
- Using get_option() in JavaScript
- Limit cache size from W3 Total Cache [closed]
- Shortcode empty attribute
- How does a shortcode work?
- Shortcode outputs at the top of the_content
- the_excerpt and shortcodes
- Using wp_editor in shortcode
- Remove wpautop from shortcode content / remove whitespace in buffering
- Get current post id witout passing in shortcode
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- How to add multiple buttons to TinyMCE?
- Check if post/page has gallery?
- Get first video from the post (both embed and video shortcodes)
- Get shortcode name from within it’s callback function? [duplicate]
- Trouble with Transient API when W3TC is activated [closed]
- Wordspress add into my javascripts
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How do I create a Shortcode that returns text if domain is .com, not .co.uk
- Using preg_replace to separate gallery from the_content?
- Remove specific shortcode from get_the_content()
- W3 Leverage browser caching not working for google pagespeed [closed]
- How to display the site name in a WordPress page, or post
- Hide/show content starting in the middle of a paragraph
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- Combining shortcode and get_template_part
- How can I put a wp_redirect into a shortcode?
- Clear cache when a post is submitted [closed]
- Escaping quotes from shortcode attributes
- Run visual composer code in php page
- short code output too early
- Shortcode in shortcode: How to append variable?
- Remove wptexturize from a shortcode?
- How can i put an array as variable in shortcode_atts?
- Autoembeds don’t work with paragraphs
- Table of Contents with a shortcode
- Create custom [sourcecode] shortcode, the right way?
- TED talks shortcode not working
- Allowing shortcodes inside attributes
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- What is the best way to enable nested shortcodes?
- Is it possible to disable caching of an option when using w3 total cache?
- WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]
- Tinymce – How to hook before or after live shortcodes rendering?
- How to customize a shortcode using the customizer
- Native “playlist” shortcode random playing… How?
- How to Output HTML tags in do_shortcode?
- List of all inbuilt WordPress shortcodes
- Nested Shortcode Detection
- Shortcode output always showing at top of page
- Organizing shortcodes. How to display all of them and their attributes?
- How to detect if a Shortcode is being called on a page?
- How to get current page title inside a page itself in a shortcode and in page content
- how to have the gallery shortcode output one single UL list instead of several DL?
- Implement If-ElseIf-Else-EndIf with short codes
- Short code to display a loop
- Using shortcode in Post title
- using html as shortcode attribute
- shortcode outputs first before the page content [duplicate]
- How to add ‘class’ attribute into shortcode [audio]?
- Make shortcode work with nested double quotes
- Get all posts containing a shortcode
- How to display the names of users from a specific group with a shortcode?
- WordPress adds br in between my shortcode
- Stray closing paragraph tag when using shortcodes
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- How to display html in a shortcode