• Resolved Dave Warfel

    (@davewarfel)


    One of my readers pointed out that a new plugin I posted in a custom post type did not appear on the custom post type archive page (https://wpsmackdown.com/wp-plugins/).

    Currently, in the settings, I have this box unchecked:

    Clear the complete cache if a new post has been published (instead of only the home page cache).

    Do I need to check it in order for the custom post type archive page cache to be cleared each time a new post is published in it?

    I’d prefer to be able to just clear the cache of that specific archive page, and not the entire site. Is there a way to do this?

    Thanks guys.

    https://wordpress.org/plugins/cache-enabler/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey Dave,

    That is a great point! Looks like we should add a “purge individual” URL to options. I see how this could be useful as you don’t want to always purge entire site cache. Especially when it comes to archive pages for custom post types. I have added this to our road map to consider adding.

    Until then, technically you can go to your /cache folder via FTP and delete the specific folder for that archive post: /wp-content/cache/cache-enabler/wpsmackdown.com/wp-plugins/ Then it would have to rebuild cache for your WP plugins page. It isn’t pretty solution, but a work around for now.

    Hopefully that helps! Stay tuned for new updates to Cache Enabler.

    Thread Starter Dave Warfel

    (@davewarfel)

    Very helpful, Brian. Thanks. An option to purge an individual URL would be a nice addition.

    If I just delete the index and index-webp .html and .gz files within the /wp-plugins/ folder, will that purge the cache for just the archive page and NOT for the individual posts associated with that post type?

    Correct, the individual posts underneath that archive page should have their own folders separately with the cache built. So you can delete the index and index-webp within /wp-plugins/ to clear that archive page.

    Thread Starter Dave Warfel

    (@davewarfel)

    Worked like a charm. Thanks Brian!

    Hey Dave! Just wanted to let you know, in the new version of Cache Enabler released, you can now purge individual URLs. So for example, I use this myself on https://woorkup.com/deals/. Which is an archive, no physical page. Pretty much identical to your setup. Now there is an option at the top to purge URL.

    Hopefully that helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Aggressive Caching on Custom Post Type Archive Page’ is closed to new replies.