• Resolved thePleasurePrincess

    (@thepleasureprincess)


    When editing and updating a post the first time Sunny seems to purge the cache relevant to the correct post ID. But updating further edits on the same post shows ID’s that do not exist.

    Example using the actual post ID:

    Sunny: Purge initiated.
    Reason: Post (ID: 1328) is being edited

    On subsequent edits to the same post, it shows this:

    Sunny: Purge initiated.
    Reason: Post (ID: 10054) is being edited

    The ID in this example does not exist as a post, page or media.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tang Rufus

    (@tangrufus)

    About post IDs that do not exist:
    I believe those are custom post types, for example product, portfolio,order, log. In WordPress, they are stored just as post.

    “Reason: Post (ID: 1328) is being edited” is misleading. A better notice should be something like this: “Reason: Product (ID: 1328) is being edited”.

    Please check both 1328 and 10054 in the debugger. If the debugger able to find urls for both IDs, Sunny is working fine.

    It might gives you some valid (in terms of format) but broken (401 / 403 / 404) links. This is because Sunny thinks:

    • these links are related to your post (or any custom post types)
    • you might have change these pages
    • serving outdated pages is bad
    • telling Cloudflare to purge more than enough doesn’t hurt

    Thus, Sunny just tells Cloudflare to purge all of them.

    Keeping this issue open. Tell me about the debugger results. Thanks!

    • This reply was modified 7 years, 5 months ago by Tang Rufus.
    Plugin Author Tang Rufus

    (@tangrufus)

    Sunny now shows post type name in purge initiated notices, e.g:

    Sunny: Purge initiated.
    Reason: Page (ID: 1234) is being edited

    This feature is shipped with v2.4.0.

    Note that if the developer doesn’t give the custom post type a singular name label, Sunny will show Post or Page. This issue is usually safe to ignore.

    See: https://github.com/TypistTech/sunny/pull/104

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unrelated ID’s after editing’ is closed to new replies.