I have a scenario where I have a set of category nodes (Red, Blue Green etc) and when one of these nodes is published I want to conditionally update some other content nodes in the tree.
This is working as intended, but my question is how to obtain the list of category nodes during this event that includes the updates to the category that was just published? I tried using the content cache but it seems that hasn’t been updated yet:
another way to phrase my question might be at what point/event after publishing content can i use "ContentCache.GetByXPath" and have it use the newly published item/s? thanks
maybe another way to phrase my question is after which contentservice event can i use the cache file and expect the cache file to contain the item being published? (on umbraco 7.2)
ContentService Published event in umbraco 6.1.6
hi
I have a scenario where I have a set of category nodes (Red, Blue Green etc) and when one of these nodes is published I want to conditionally update some other content nodes in the tree.
I have the published event wired up using
This is working as intended, but my question is how to obtain the list of category nodes during this event that includes the updates to the category that was just published? I tried using the content cache but it seems that hasn’t been updated yet:
Thanks
Not really related to this topic, but you might want to read this topic: http://our.umbraco.org/forum/developers/api-questions/47222-Custom-publishing-event-handler-not-firing-for-subpages?p=0#comment169248
Jeroen
another way to phrase my question might be at what point/event after publishing content can i use "ContentCache.GetByXPath" and have it use the newly published item/s? thanks
or is it bad practice to use both ContentService and ContentCache in unison?
hi - does anyone have a solution to this? thanks
maybe another way to phrase my question is after which contentservice event can i use the cache file and expect the cache file to contain the item being published? (on umbraco 7.2)
is working on a reply...