Copied to clipboard

Flag this post as spam?

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


  • lucuma 261 posts 563 karma points
    Mar 09, 2015 @ 17:33
    lucuma
    0

    Streamlined Synchronize and Publish

    I'm doing an integration from Active Directory to Umbraco by keeping a bunch of user fields and photos in sync. It is just a simple loop looking up information/etc however inside of each loop I'm republishing each node because I really don't know if the photo had changed or not. The entire process seems extremely slow.

    loop
       _contentService.SaveAndPublishWithStatus(node, 0, false);
    end loop
    

    Inside the loop I'm also unpublishing nodes if they are no longer in the active directory/meet a certain condition.

    Is there a way to streamline the publish/unpublish so it isn't per node which seems extremely slow.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies