uSync Publisher - get url of nodes after push publish

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.

Steve

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?

Makes sense and much simpler to then get the url I need. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.