Title: Caching unexpanded shortcode
Last modified: June 26, 2019

---

# Caching unexpanded shortcode

 *  [stevemullen](https://wordpress.org/support/users/stevemullen/)
 * (@stevemullen)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/caching-unexpanded-shortcode/)
 * We are seeing an issue with WP Super Cache caching a copy of a page that has 
   shortcodes, and those shortcodes are unexpanded (shortcode text is visible to
   visitor).
 * The plugin for the shortcode is activated. There are no errors. Most of the time,
   when someone visits the page, the page is correctly built and the shortcode is
   resolved and real estate content is displayed. But sometimes, the shortcode is
   visible, and no real estate content is displayed. When I clear the cache, everything
   goes back to working.
 * This doesn’t make sense to me. Not only must the shortcode fail (which I cannot
   get to happen), but it must also be at this same time that WP Super Cache decides
   to cache this version of the page. How likely is that?
 * But we are seeing this daily.
 * Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcaching-unexpanded-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/caching-unexpanded-shortcode/#post-11678154)
 * It’s quite likely to happen when a page is cached because caching happens every
   time a page is served where there is no cache file for it. It might be happening
   when caching is turned off too but you’re not seeing it because there are no 
   cached files to look at.
 * I think you’ll need to add a lot of debugging code to the shortcode. Use error_log
   with the Apache process ID or IP address of the visitor plus the REQUEST_URI 
   to track which requests cause whatever errors you might catch.

Viewing 1 replies (of 1 total)

The topic ‘Caching unexpanded shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/caching-unexpanded-shortcode/#post-11678154)
 * Status: not resolved