You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting draft posts triggers the site.changed webhook. I assume, though, that site.changed is supposed to mean "something happened that changed the website's published1 front-end content." Accordingly, creating a draft post and updating a draft post do not trigger the site.changed webhook.
Why It Matters
I use the site.changed webhook to trigger cache purges. When I delete a draft post, the site.changed webhook clears my front-end cache, even though there weren't any changes to the website's published front-end content.
Steps to Reproduce
Create a site.changed webhook for monitoring
Create and save a draft post
Delete the draft post
Check the [last triggered] status of the site.changed webhook
Thoughts on Resolution
The post.unpublished webhook triggers when a published post is unpublished either by means of being reverted to draft status or by being deleted. It avoids triggering when a draft post is deleted. Could similar logic be used as part of the site.changed webhook?
I assume the issue also applies to deleting draft pages, but I haven't tested.
Ghost Version
6.101.1
Node.js Version
18.20.4
How did you install Ghost?
Docker ghost:5-alpine
Database type
MySQL 8
Code of Conduct
I agree to be friendly and polite to people in this repository
Footnotes
From personal testing, e-mail-only posts and previews seem excluded from Ghost's definition of "published" ↩
The text was updated successfully, but these errors were encountered:
Issue Summary
Deleting draft posts triggers the
site.changed
webhook. I assume, though, thatsite.changed
is supposed to mean "something happened that changed the website's published1 front-end content." Accordingly, creating a draft post and updating a draft post do not trigger thesite.changed
webhook.Why It Matters
I use the
site.changed
webhook to trigger cache purges. When I delete a draft post, thesite.changed
webhook clears my front-end cache, even though there weren't any changes to the website's published front-end content.Steps to Reproduce
site.changed
webhook for monitoringsite.changed
webhookThoughts on Resolution
The
post.unpublished
webhook triggers when a published post is unpublished either by means of being reverted to draft status or by being deleted. It avoids triggering when a draft post is deleted. Could similar logic be used as part of thesite.changed
webhook?I assume the issue also applies to deleting draft pages, but I haven't tested.
Ghost Version
6.101.1
Node.js Version
18.20.4
How did you install Ghost?
Docker ghost:5-alpine
Database type
MySQL 8
Code of Conduct
Footnotes
From personal testing, e-mail-only posts and previews seem excluded from Ghost's definition of "published" ↩
The text was updated successfully, but these errors were encountered: