Copied to clipboard

Flag this post as spam?

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


  • Flavio Spezi 129 posts 315 karma points
    Jan 14, 2014 @ 10:46
    Flavio Spezi
    0

    Best event to listen to update Examine index in Umbraco 6.1.6

    I am a custom Examine Index. Then I need to maintain it with CodeBase.
    What is the best event to listen to update the index?

    I'm using umbraco.content.AfterUpdateDocumentCache and umbraco.content.AfterClearDocumentCache events, but their signature are using a deprecated object (umbraco.cms.businesslogic.web.Document). I would upgrade to Umbraco 7.0.

    Events signature:

    using umbraco.cms.businesslogic;
    using umbraco.cms.businesslogic.web;
    
    ...
    
    protected void content_AfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e) {
        ...
    };
    
    protected void content_AfterClearDocumentCache(Document sender, DocumentCacheEventArgs e) {
        ...
    };
    

    I look that these events are used inside Examine: https://github.com/Shandem/Examine/blob/master/Projects/UmbracoExamine/UmbracoEventManager.cs

  • Alex Lindgren 159 posts 356 karma points
    Apr 18, 2014 @ 05:14
    Alex Lindgren
    0

    In Umbraco 7, you might want to look at the PageCacheRefresher.CacheUpdated event which gets called after the cache is updated.

Please Sign in or register to post replies

Write your reply to:

Draft