Title: [Bug?] Doesn&#8217;t clear custom post type archives
Last modified: August 3, 2019

---

# [Bug?] Doesn’t clear custom post type archives

 *  [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/)
 * Hello, when i publish a custom post type i want the post type archive cache to
   be cleared. Else the post will not be there.
 * But the plugin doesn’t do it. And there’s no option to do it? It’s clear ALL 
   or other irrelevant archives.
 * I don’t want to clear thousands of posts only the archives of that type. Why 
   isn’t this possible?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11796703)
 * are you talking abour “Archive” page or “category, tag” ?
    Can you tell me a 
   sample url please?
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11797444)
 * I don’t have a live url but i can clarify.
 * I mean the archives for the custom posty type. If the post type it’s “house” 
   the url would be:
    `example.com/house/`
 * I don’t mean categories or tags, There’s an option to clear them.
    But there’s
   no option to clear the archive of the post type.
 * > [View post on imgur.com](https://imgur.com/yhbQQu0)
 * You can either chose “All caches” OR “home + categories + tags + pagination”
 * So i’m forced to chose “All”. You might say, well do that. **But i have 15,000
   posts. I find it a waste of resources to clear uneeded cache.**
 * An option for custom post types is needed.
    -  This reply was modified 7 years, 1 month ago by [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11797647)
 * I try to understand. Are you talking about the urls such as below?
 * [https://example.com/2019/07](https://example.com/2019/07)
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11798393)
 * Hi, no that looks like date archives.
 * I assume you know what “Custom Post Types” are? You have the option to preload
   them:
 * > [View post on imgur.com](https://imgur.com/E3q2DSb)
 * If you had a bunch of custom posts of the type “house” Their urls would be:
 *     ```
       example.com/house/new-york/
       example.com/house/california/
       example.com/house/dallas/
       ```
   
 * And to view the archives of all “house” post you would visit:
 * `example.com/house/`
 * That last url is the archive of the custom post types that doesn’t get cleared
   when you post a new house.
 * So if i create a new “house”:
 * `example.com/house/chicago/`
 * In the archives page:
    `example.com/house/` I will not see it, i will see the
   cached version with only the first 3 “house”.
 * Does that make sense?
 * Basically what i’m saying is if i post a “house” i need the plugin to clear the
   cache of “house” archives. in here: [https://i.imgur.com/yhbQQu0.png](https://i.imgur.com/yhbQQu0.png)
    -  This reply was modified 7 years, 1 month ago by [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11798412)
 * every custom post does not support it.
 * [https://example.com/product/cars-1](https://example.com/product/cars-1)
    [https://example.com/product/cars-2](https://example.com/product/cars-2)
   [https://example.com/product/cars-3](https://example.com/product/cars-3)
 * For example; if you open [https://example.com/product/](https://example.com/product/),
   you cannot see all the products.
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11798640)
 * It depends on what the admin needs, if `has_archive` is set to `true` when registering
   the new type it will work. Which is often the case since you generally want the
   posts to be somewhere.
 * [https://codex.wordpress.org/Function_Reference/register_post_type](https://codex.wordpress.org/Function_Reference/register_post_type)
 * Since this cache exists for the custom posts that support it, it should also 
   be purged when a new custom post is published.
 * If it doesn’t exist (is disabled) then there’s no visible issue.
    -  This reply was modified 7 years, 1 month ago by [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/).
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11799030)
 * Also going to for example `https://example.com/product/` and doing “Clear cache
   for this page” Has no effect (it loads for a sec but doesn’t delete it).
 * So the plugin creates the cache but doesn’t delete it specifically. The only 
   solution is doing “Delete Cache” wich i assume deletes everything.
 * Basically my suggestion is, add the option to clear the custom post archive when
   a new custom post is created.
 * Else i’m forced to delete thousands of unrelated cached pages when i only need
   to clear 1 specific archive.
 * Please consider.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11799112)
 * you can open example.com/house/ and clear cache manually.
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11799120)
 * Manually how? Sorry i’m confued.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11800406)
 * Please take a look at the following tutorial.
    [https://www.wpfastestcache.com/tutorial/clear-cache-for-specific-page/](https://www.wpfastestcache.com/tutorial/clear-cache-for-specific-page/)
 *  Thread Starter [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11800710)
 * As i told you on my previous message, it is broken for custom post types archives.
 * > Also going to for example [https://example.com/product/](https://example.com/product/)
   > and doing “Clear cache for this page” Has no effect (it loads for a sec but
   > doesn’t delete it).
 * I don’t think the plugin is ready to handle custom post type archives. Might 
   need to go back to Automatic’s super cache.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11800745)
 * can you tell me a plugin for testing custom post type archives please?

Viewing 12 replies - 1 through 12 (of 12 total)

 The topic ‘[Bug?] Doesn’t clear custom post type archives’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/bug-doesnt-clear-custom-post-type-archives/#post-11800745)
 * Status: not resolved