Skip to content

Unpublished document webhook trigger does not invalidate cache #94

Description

@peterjaap

Both webhook controllers now use the document ID in the payload to retrieve documents through the API and consequently flush the relevant cache types.

This works perfectly fine on publish. However, on Unpublish, the document is not retrievable through the API anymore. So we don't have data on what custom type it is and we can't flush the cache.

So triggering a webhook on an Unpublish trigger doesn't invalidate anything right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions