WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Cache does not clear properly (4 posts)

  1. TJList
    Member
    Posted 2 years ago #

    If page content is generated from shortcodes (e.g. from Gravity Forms or Links Shortcode)the cache does not clear properly. Clearing the cache from the Admin bar is inadequate. The only reliable way to clear the cache and display proper content is to turn the cache off and re-enable it.

    I'm not sure I even trust that.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. James Revillini
    Member
    Posted 2 years ago #

    This will always be true concerning shortcode-generated content, because editing the gravity form doesn't call on super cache to clear anything, so you have to wait for garbage collection to catch up and expire pages, however manually clearing the cache using the 'delete cache' button whilst logged in and on the page in question should work and does seem to work for most of us.

    Are you dealing with multiple domain names? Multiple editors/admins? Any other "interesting" characteristics about your setup that might give a clue?

  3. TJList
    Member
    Posted 2 years ago #

    Thanks for the suggestion. I have tried deleting the cache manually, but I have not been on the specific page when I did it. I will try that again. I *have* tried going through the Admin menus to manually clear the cache and garbage collection, and that had inconsistent results.

    I'm running WordPress 3.3.1 on a shared hosting system. It's a pretty vanilla install running a child theme of Twenty-Eleven and a handful of plugins. I'm the only user so far, but I will be adding several more editors in the next couple of months.

    Waiting for garbage collection doesn't seem to work. After changing the page content from one Gravity Form to another, the cache was still serving the wrong page after 2 days.

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Can you create a plugin that calls the edit_post hook with the post_id of the page/post where the gravity forms shortcode is? Whenever you do anything that changes the form (or adds new links) then edit_post will be called. That will in turn clear the cache for that page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic