Support » Plugin: WP Super Cache » 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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Donncha Ó Caoimh


    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)
  • You must be logged in to reply to this topic.