I can capture a single node publish event, by inheriting ApplicationBase and hooking up to Document.AfterPublish event. But I cannot seem to find out how to also hook up to the Republish entire site event.
But I cannot seem to find anything on there that deals with the republish entire site? Republishing the entire site does not cause the Document AfterPublish event to fire either.
I think you need the Content.AfterRefreshContent event. It doesn't give you any info about pages being published etc because it only refreshes the internal cache.
Capturing "Republish entire site" from event
Hi All.
I can capture a single node publish event, by inheriting ApplicationBase and hooking up to Document.AfterPublish event. But I cannot seem to find out how to also hook up to the Republish entire site event.
I found this page in the wiki: http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/overview-of-all-events
But I cannot seem to find anything on there that deals with the republish entire site? Republishing the entire site does not cause the Document AfterPublish event to fire either.
Any help would be grand.
Thanks in advance
Jim
Hi Jim,
'Republish entire site' doesn't actually republish any pages. It only clears the xml cache and recreates it.
No unpublished pages are published therefore there should be no need to catch this event.
Cheers,
Chris
Hi,
I think you need the Content.AfterRefreshContent event. It doesn't give you any info about pages being published etc because it only refreshes the internal cache.
Cheers,
Richard
Thanks guys;
I will just work off the AfterPublish event then. :)
is working on a reply...