• 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

    (@emrevona)

    are you talking abour “Archive” page or “category, tag” ?
    Can you tell me a sample url please?

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    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

    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 5 years, 8 months ago by ctrlaltdelete.
    Plugin Author Emre Vona

    (@emrevona)

    I try to understand. Are you talking about the urls such as below?

    https://example.com/2019/07

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    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

    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

    • This reply was modified 5 years, 8 months ago by ctrlaltdelete.
    Plugin Author Emre Vona

    (@emrevona)

    every custom post does not support it.

    https://example.com/product/cars-1
    https://example.com/product/cars-2
    https://example.com/product/cars-3

    For example; if you open https://example.com/product/, you cannot see all the products.

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    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.www.ads-software.com/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 5 years, 8 months ago by ctrlaltdelete.
    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    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

    (@emrevona)

    you can open example.com/house/ and clear cache manually.

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    Manually how? Sorry i’m confued.

    Plugin Author Emre Vona

    (@emrevona)

    Please take a look at the following tutorial.
    https://www.wpfastestcache.com/tutorial/clear-cache-for-specific-page/

    Thread Starter ctrlaltdelete

    (@ctrlaltdelete)

    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/ 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

    (@emrevona)

    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.