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?
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.
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);
Just posting this here for reference since it seems related: https://our.umbraco.org/forum/developers/api-questions/63838-SaveAndPublishWithStatus-still-fires-events-when-you-say-NO
I too am running into the same issue. Endless loop for me. I am running umbraco 7.2.4.
Did anyone manage to resolve this one?
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
is working on a reply...