• Resolved flashjunkie

    (@flashjunkie)


    I’m unable to clear the page cache for a custom post type either by updating the content or by using the buttons in the admin bar, I’ve also tried to clear the cache via the following code:

    w3tc_flush_post(<post_id>);

    The custom post is located here: https://tpet.co.uk/hub/ks1/

    I have made significant edits to this page today, whilst logged in I can see these changes perfectly (as W3TC is set not to show cahced pages for logged in users)

    I have tried many many ways to clear the cache so that it updates for logged out users but I’m unable to. I even tried to ‘clear all page cache’ – this did not work either.

    Please help.

    Many thanks

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

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

    (@vmarko)

    Hello @flashjunkie

    Thank you for your inquiry and I am happy to assist you with this.
    I can confirm that in some cases the CPT is not cleared with W3 Total Cache. We do have an open GitHub issue about this so please make sure to track the progress of the issue and feel free t leave a comment to contribute.
    Thanks!

    Thread Starter flashjunkie

    (@flashjunkie)

    Hi Marko,

    I’m using Memcached type for Page Cache, I tried absolutely EVERYTHING in the admin interface and through my functions.php file to clear the cache on the page above. Eventually, I had to log into my server via siteground and clear the “dynamic cache” on the server, this has now updated the page for the front end.

    Obviously this is not a suitable method for clearing the cache, I can confirm that this is not CPT related, as I did a test on my home page with similar issues, I am unable to manually clear the cache for any page/post unless I clear the “dynamic cache” on the server.

    What is frustrating is that the cache DOES seem to clear on interval. I’m guessing that this is the ‘dynamic cache’ being cleared on intervals via siteground.

    It seems there are some incompatibilities with siteground and W3TC.

    Hoping you can help.

    Many thanks

    • This reply was modified 3 years, 11 months ago by flashjunkie.
    Thread Starter flashjunkie

    (@flashjunkie)

    (Also, it is worth mentioning that this is a new issue, I cannot be certain when these issues started to happen, but it is within the last couple of weeks, potentially related to either a plugin update or the recent WP 5.7 update)

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @flashjunkie

    Thank you for the information.
    As for the Dynamic Cache on Siteground, W3 Total Cache cannot handle this.
    So you should reach out to the hosting provider and ask them to disable the server-side caching as it’s not recommended to use more than one caching layer.
    Thansk!

    @flashjunkie Thank you for posting this, we’ve been confused as to why the homepage was not updating all of a sudden, since about Feburary. We too are hosted with SiteGround so thank you for highlighting this issue.

    Not sure what we will do going forward.

    Thread Starter flashjunkie

    (@flashjunkie)

    Yes this appears to be a new problem but I’m unsure if it is related to W3TC or an update to the DC on Siteground. I have always had both running and never had any issues with manually clearing caches.

    I think it is a Site Ground issue. I can see they have recently added a lot of new code into our site related to caching without mentioning it.

    I spoke to their support today, as after flushing it once it still was not updating till we flushed again, and was advised to add

    <IfModule mod_headers.c>
    Header set Cache-Control "max-age=0,no-store"
    </IfModule>

    To htaccess in order to disable their Dynamic Caching. More at https://www.siteground.com/kb/disable-dynamic-caching-website/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page Cache issue (possibly related to CPT)’ is closed to new replies.