Skip to content

Posts that are deleted using wp_delete_post($postId, force_delete: true) are not purged #453

@stefanfisk

Description

@stefanfisk

When using the force_delete argument of wp_delete_post() the post is not purged from the cache even if it was published.

I think that we also need to hook into before_delete_post

Attachments seem to have their own deletion hooks as well, but I've never used attachment pages so I don't really know how they work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions