Is this intended behaviour? If so, is there any way I can ‘force update’ that item so I don’t have to use ContentService to manage it?
I think this may be intended behaviour as though the media has been saved I don’t believe the cache will have been refreshed at this stage.
Depending on your use case you could use the MediaCacheRefresherNotification which should provide the refreshed version.
You’ll want to cast the notification object to type MediaCacheRefresher.JsonPayload[]and from there you should be able to access the Id’s for the updated media items.
I would suggest using IUmbracoContextAccessor rather than UmbracoHelperbut either method should work.
That helps. Thanks!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.