Copied to clipboard

Flag this post as spam?

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


  • Bjørn Fridal 274 posts 784 karma points
    Nov 16, 2009 @ 16:22
    Bjørn Fridal
    0

    Event that fires after umbraco.config has been generated?

    Hi,

    I am working on a broken link checker. I am therefore looking for a an event that fires after the umbraco.config has been generated. I don't know if there is such a thing. I tried with the AfterUpdateDocumentCache but it doesn't seem to work. Maybe that's because it takes some time to generate the file and the event doesn't wait around for that?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 16, 2009 @ 16:28
    Richard Soeteman
    0

    Hi,

    Is it for a single page? Maybe just use the Document_AfterPublish event?

    Cheers,

    Richard

  • Bjørn Fridal 274 posts 784 karma points
    Nov 16, 2009 @ 16:32
    Bjørn Fridal
    0

    Hi,

    That was my initial thought. But when I do that and insert a breakpoint before the event finishes, and then open the umbraco.config file it hasn't been updated yet.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 16, 2009 @ 16:54
    Richard Soeteman
    1

    But you want to check the links in the current document right? When the events are finished  the file will be updated , it's a matter of milliseconds I think.

    Don't know if the AfterUpdateDocumentCache event is related to the umbraco.config file btw. It's possible that this is fired when the internal cache  updates. Don't know for sure.

    Cheers,

    Richard

     

  • Bjørn Fridal 274 posts 784 karma points
    Nov 16, 2009 @ 18:02
    Bjørn Fridal
    0

    Hi,

    Ah I am not being very clear I think. What I want to do is to be able to check links from the current document against nodes in the umbraco.config file.

    That way I, hopefully, avoid dealing with the database.

Please Sign in or register to post replies

Write your reply to:

Draft