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]
- Using wp_editor in shortcode
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- Trouble with Transient API when W3TC is activated [closed]
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- Native “playlist” shortcode random playing… How?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- Using audio shortcode for .mp3 URLs with a query string
- Get multiple shortcode attribute values
- Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
- Varnish + W3 Total Page Cache [closed]
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- How to display some selected user meta data on a specific page with a shortcode?
- W3 Total Cache doesn’t detect memcached [closed]
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to save a shortcode in a Gutenberg custom block?
- Is shortcode_unautop() broken?
- Shortcode displays only default attribute values
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Passing attributes to shortcode dynamically
- Stop parsing shortcodes
- Meta tags in shortcode
- Gist shortcode is not working
- Display post metadata: “title, category, author, date” with shortcode
- shortcode javascript not working on custom template file inside theme folder
- shortcode get thumbnail size
- Check if post has gallery images/media
- Stop auto formatting in shortcodes
- Get URL Param Plugin and Inserting Result in Widget Code
- Problem with using custom shortcode with ACF WYSIWYG field
- Add shortcode support to custom field
- Preserve shortcode content formatting
- Shortcode help: If no image entered take default
- Populate shortcodes with table data and get next row
- Reloading a Mediaelement audio player
- Shortcode is not processed when added to option field using wp_editor
- How to apply an ID to Shortcode Embedded iframe
- Adding Shortcode Values to wp_head
- Shortcodes: closing shortcode not being processed
- Retrieving post excerpt as a shortcode
- Insert PHP code via shortcode?
- Trying to call dynamic content as a shortcode attribute
- What is the correct syntax to append a URL using a shortcode for an iframe?
- Shortcodes in RSS excerpts
- If else with shortcodes
- enqueue script with get_shortcode_regex
- How to set a variable in a shortcode and reference it in another shortcode in the same post?
- How to get_post_meta in a shortcode in excerpt on archive pages
- WordPress upgrade adding additional quote marks to shortcode output
- How to build a shortcode for tabs
- Creating tabs shortcode
- SImple Example To Update User Info From Front End [duplicate]
- using shortcodes in theme content
- How to: Simple Nested Shortcode [closed]
- get_posts not working on homepage?
- ACF repeater + group shortcode
- Custom shortcode skips every 2nd shortcode
- Wrap template code with shortcodes
- Gutenberg Shortcode Chooser Block
- Shortcode custom query not passing value
- How to create custom variables in wordpress
- Unknow shortcode read on display site
- Onclick want to call shortcode in wordpress
- Working with Contact Form 7 pipes
- Second attribute of shortcode is not changing why?
- Removing text + shortcode from all posts
- Is Post-Author-Id shortocde
- Load next post by ID on a single page
- Plugin files not updated (cache cleared)
- Add catagory attribute to custom shortcode
- Class variables in shortcodes
- Separating Custom Template logic
- Defining the output of a WordPress Att
- Remove width and height attributes from [gallery] output
- Custom WP theme not showing shortcodes
- Shortcode for sectors
- How to not show shortcode contents if cart is empty?
- Help with Shortcode Functionality
- Shortcode Site include in a other
- Shortcode with foreach
- How do write this type shortcode? [closed]
- WordPress functions.php shortcode is not working [closed]
- My first WordPress shortcode just returning []
- 3 shortcodes 2 won’t render [closed]