I have a page that posts some values, then updates a custom property on media items to be these values. I then render out some nodes from a multipicker that use these media items.
So Form with property values -> post -> update media custom property on all affected items -> redirect to page -> render out nodes from a multipicker on a member that consume these media items.
When I render out the media items the property has been updated but on the nodes it is still the old value, or sometimes a few of the nodes have updates but not all of them.
I tried calling the mediaservice.RebuildXmlStructures() but it doesn't help. I also tried calling SaveAndPublish again on the nodes that use the media items but it also has no effect.
If I wait for half a second then render the page the values are correct which makes me think it's something to do with the media cache being slow to update?
How long would you expect it to take the cache to update is this normal?
Media cache update issues
Hello,
I have a page that posts some values, then updates a custom property on media items to be these values. I then render out some nodes from a multipicker that use these media items.
So Form with property values -> post -> update media custom property on all affected items -> redirect to page -> render out nodes from a multipicker on a member that consume these media items.
An abridged version of the code is this
When I render out the media items the property has been updated but on the nodes it is still the old value, or sometimes a few of the nodes have updates but not all of them.
I tried calling the mediaservice.RebuildXmlStructures() but it doesn't help. I also tried calling SaveAndPublish again on the nodes that use the media items but it also has no effect.
If I wait for half a second then render the page the values are correct which makes me think it's something to do with the media cache being slow to update?
How long would you expect it to take the cache to update is this normal?
I have a similar issue. Strange nobody replied to your question.
is working on a reply...