Copied to clipboard

Flag this post as spam?

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


  • George 7 posts 124 karma points
    Apr 14, 2015 @ 16:57
    George
    0

    SaveAndPublishWithStatus raiseevent=false no longer working in version 7.2.0

    Hi 

    Does anyone know of a breaking change in version 7.2?  The raiseEvent=false param on SaveAndPublishWithStatus still triggers the event and I it used to work before I updated Umbraco.  If it helps I'm calling the SaveAndPublishWithStatus in the webapi controller.  Can anyone advise?

                                       contentService.SaveAndPublishWithStatus(exists, 0, false);

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Apr 14, 2015 @ 17:41
  • mscommunities 40 posts 95 karma points
    May 06, 2015 @ 10:25
    mscommunities
    0

    I too am running into the same issue. Endless loop for me. I am running umbraco 7.2.4.

  • Mark Slade 48 posts 109 karma points
    Jun 04, 2015 @ 15:51
    Mark Slade
    0

    Did anyone manage to resolve this one?

  • Mark Slade 48 posts 109 karma points
    Jun 04, 2015 @ 16:47
    Mark Slade
    0

    I think I may have answered it myself!

    I've been trawling around and found this:-


    This is unavoidable. If the published event is not raised then the xml cache will not be updated nor will Examine or any other listeners on publishing. The raiseEvents flag on that method will supress the Save events but not the published, but as mentioned this cannot be avoided otherwise you will end up with inconsistent data in caches.

    Have a look at:- http://issues.umbraco.org/issue/U4-4147

    I'll have to think of a workaround.

    Mark

Please Sign in or register to post replies

Write your reply to:

Draft