• Resolved chickendipper

    (@chickendipper)


    Hi,

    Could you tell me if the page cache purge policy will automatically purge cache of custom post types when publishing new posts?

    There doesn’t seem to be a checkbox for the custom post types I have as there is in some other cache plugins so just wondered if they are already included?

    Thanks.

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

    (@vmarko)

    Hello @chickendipper

    Thank you for your question and I am happy to assist you with this.
    This should be happening automatically once the post is published/updated with the default Purge Policy settings.
    If not, you can add the custom post in Performance>Page Cache>Purge Policy and Specify additional pages to purge. Including the parent page in the path. Ex: parent/posts.
    So for example if the custom post type is under https://yourwebsite/some-page/some-post/
    you can only add
    /some-page/ to Additional pages: field.
    I hope this helps!

    Thanks!

    Thread Starter chickendipper

    (@chickendipper)

    Hello,

    Thank you very much for your support.

    One other question, do you recommend using W3 page cache alongside Nginx server based cahche?

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chickendipper

    Thank you for your feedback.
    Yes, I would advise using Page Caching alongside the Proxy cache, however, please note that W3TC cannot purge the server cache, so you need to do this manually once any changes are done.
    Thanks!

    Thread Starter chickendipper

    (@chickendipper)

    Ok, I will set my nginx cache to just 1 day so things keep getting updated.

    I have one last issue, I have 3 urls I need to not cache in W3TC:

    /favourites/
    /login/
    /account/

    I have entered these into both Never cache the following pages and Cache exception list but they still get cached, is there something I am missing here?

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chickendipper

    This may be the problem with the server cache.
    Can you please share the website URL so I check if those are in fact cached by the W3TC?
    Thanks!

    Thread Starter chickendipper

    (@chickendipper)

    Hi,

    All working fine on nginx cache only, I am watching the folders and files being created in the page_enhanced folder /wp-content/cache/page_enhanced.

    The url of the site is: https://ukradio.live

    Thanks.

    Thread Starter chickendipper

    (@chickendipper)

    My bad I should of read the cache exception list description: Cache the specified pages / directories even if listed in the “never cache the following pages” field.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chickendipper

    Thank you for the information!

    Thread Starter chickendipper

    (@chickendipper)

    Sorry this is still not working, the pages I have added to not cache are still being cached.

    Is there anything else I can try?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chickendipper

    Once the page is added to the Page Cache exception it should not be cached.
    I’ve checked the pages you shared and they are throwing 404?
    https://ukradio.live/account/
    https://ukradio.live/login/
    If the page is added to an exception, you should see the HTML snippet inspecting the page source at the bottom of the page, showing the W3TC settings enabled.
    If the Page is excluded from the cache it should show:
    Page Caching using disk: enhanced (Requested URI is rejected)
    This may not show if HTML minify is enabled and if so, please add Performance to Performance>Minify>HTML&XML>Ignored comment stems: field, save all settings, and purge the cache.
    Also make sure to purge the server cache if enabled.
    Let me know if this helps!

    THanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Page cache purge policy – custom post types’ is closed to new replies.