Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jim 18 posts 36 karma points
    Dec 16, 2010 @ 11:07
    Jim
    0

    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

  • Chris Koiak 700 posts 2626 karma points
    Dec 16, 2010 @ 11:12
    Chris Koiak
    0

    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

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 16, 2010 @ 11:20
    Richard Soeteman
    2

    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

  • Jim 18 posts 36 karma points
    Dec 16, 2010 @ 11:34
    Jim
    0

    Thanks guys;

    I will just work off the AfterPublish event then. :)

Please Sign in or register to post replies

Write your reply to:

Draft