• Resolved revive

    (@revive)


    W3C Total Cache has been working great to speed up the site, with one exception. Draft Posts.

    As a post is created, and set to Draft, it seems to be cached… once the post is Published the admin can still see it.. but if you log out or view in a private/incognito window, the post does NOT show even though it has been changed from Draft to Published.

    What can be done to exclude Draft posts from being cached???

    The site has over 30k products on it, so we DO NOT want to purge/reload cache each time a Draft is changed to Published.. but if we can find a way to exclude posts in Draft Status, that would be a great fix!

    • This topic was modified 2 years, 2 months ago by revive. Reason: updated content
    • This topic was modified 2 years, 2 months ago by revive.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @revive

    Thank you for reaching out and I am happy to assist you with this.
    Just to clarify, W3 Total Cache does not cache draft posts. The cache is disabled by default for logged-in users, and this is why you can see the post when it’s published while logged in.
    Be that as it may, the cache needs to be purged once any post is added or updated.
    You do not need to purge all cache, so you can simply purge the individual pages:
    https://www.loebequipment.com/appraisals-hot-out-of-the-oven-fresh-and-fast/
    and
    https://www.loebequipment.com/articles/
    While logged in, you can visit the two mentioned pages, and in the top admin bar, hover over Performance and select Purge Current page, as you can see in the screenshot below:

    Please try this and let me know if this helps!

    Thanks!

    Thread Starter revive

    (@revive)

    Hi Marko,

    Thanks for reaching out. My apologies, I should have included that we also tried to clear cache for that specific page, once we published and realized that it is not on the live site for visitors (only admins can see it because they’re logged in)…
    It seems the cache is aggressively retaining the drafts that are then published, in draft status.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @revive

    Thank you for your feedback.
    Have you purged the published article from the cache or the /articles/ page?

    Thanks!

    Thread Starter revive

    (@revive)

    Yes.

    Here is our workflow.

    Post is created and content is added by various departments, etc.. it is in Draft status. The post is only viewable by admin, which is the expected result.

    Once approved the post is then published and purged from cache. However, it is still only viewable by an admin and not publicly visible on the site – until the entire cache times out and reloads.

    Not sure why purging one article is not actually purging it from cache or why a Draft would even be cached.. but, this is what is happening and it’s causing a major delay in getting new content onto the site (these are items for sale, so much more important than an article post.)

    • This reply was modified 2 years, 2 months ago by revive.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @revive

    Thank you for your patience.

    I was able to replicate the problem, and yes you are correct the Current page flush is not not working in some cases. We’ve added this as a priority and this will be fixed in the next release.

    Thank you for bringing this to our attention.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude caching of Draft posts’ is closed to new replies.