I want to hook into the send event of a push publish and get the url of the node that’s been pushed.
I need to hit Cloudflare and tell it the url is dirty in the cache (I have this bit already).
What’s the correct notification to handle here? I thought it might be uSyncExportedItemNotification but this fires as the sync starts - if someone requests the page during the sync Cloudflare will recache - it needs to be when it’s on the target site and published.
Also - is there an easy way to get its’ URL from the notification. I’m happy if it hits this handler for each node pushed - just as long as it’s after publish.
Hi there are usync events for when it syncs stuff (such asuSyncImportedItemNotificatio) but in this instance you are probably better of using the Umbraco ContentPublished notification ?
that will fire when the item is published via usync or indeed umbraco, and it probably more reliable, because if someone does change something not via a publish it will pick that up too?