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