Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I currently building api to update and retrieve content.
everything is working great.
the issue is that after I'm updating a content document I can see the updated values in the back office
but when I retrieve the content problematically I get the old values for about 15 minutes then it is updated (or after I rebuild the project)
it looks like it is something to do with cache, but I can't work it out
I tried to use
after I updated the values but it is not working
** I just discovered something very strange, when I use
I get the old values of the content
and when I use
I get the updated values
I really don't understand :(
How did you save the documents?
Can you show all your code?
Change in umbracoSettings.config to true
thanks for you reply but it didn't do the job,
I even tried to disable the cache
and it didn't changed the situation
the only thing that helped is that I replaced the call from
var content = ApplicationContext.Current.Services.ContentService.GetById(contentKey); //contentKey is the guid documet key
int contentId = ApplicationContext.Current.Services.EntityService.GetIdForKey(contentKey, (UmbracoObjectTypes)Enum.Parse(typeof(UmbracoObjectTypes), "Document", true)).Result;
var content = ApplicationContext.Current.Services.ContentService.GetById(contentId); //contentId is the integer documet id
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted