Document AfterPublish.. is there a AfterAfterPublish event?
Hi, I need to do some processor intensive stuff after a publish, instead of hooking Document.AfterPublish() which calls for every document in the publish tree, I'd like to get a notification when all publishing has either finished or is about to begin. Is there any way to do this?
Thanks this will work. AfterUpdateDocumentCache also gets called for every node in the tree, but only after all the BeginPublish/AfterPublish's have run their course,
By setting a flag in the first AfterPublish and clearing it in the first AfterUpdate I am able to run my process once for each publish cycle.
Document AfterPublish.. is there a AfterAfterPublish event?
Hi, I need to do some processor intensive stuff after a publish, instead of hooking Document.AfterPublish() which calls for every document in the publish tree, I'd like to get a notification when all publishing has either finished or is about to begin. Is there any way to do this?
Thank you!
Hi Steve
You can see all the possible events here http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/overview-of-all-events
Hope this helps.
/Jan
Thank you for the response however my question was how to get at an event that is not on the list. I was hoping there was something undocumented.
Hi Steve
Hmm, not that I know of - but perhaps some of the other wizards in here have some nice tricks up their sleeves.
/Jan
Hi Steve,
I think the AfterPublish event is as far as it goes :-) What exactly are you trying to achieve?
There's also an event for AfterUpdateDocumentCache - don't know if that sounds more appealing to you?
- Bo
Thanks this will work. AfterUpdateDocumentCache also gets called for every node in the tree, but only after all the BeginPublish/AfterPublish's have run their course,
By setting a flag in the first AfterPublish and clearing it in the first AfterUpdate I am able to run my process once for each publish cycle.
is working on a reply...