So when I insert a new member in code the member cache is not updating. I literally have to go into the Umbraco backend and manually save this member before it is visible in the cache.
And then shortly after I have another controller action getting the member from cache but it just does not exist until I visit the backend and manually re-save the data.
It almost feels like it is not saving and publishing but the membership only has a save unlike content which has both save and publish.
IPublishedContent member = _membershipHelper.GetByEmail(email);
I think this is a bug with Umbraco core but has anyone got any ideas to get around this. Possibly a easy way to refresh the member cache within code?
Umbraco 8 Member Cache not updating after Save
Hi people,
So when I insert a new member in code the member cache is not updating. I literally have to go into the Umbraco backend and manually save this member before it is visible in the cache.
So I add a new member with the following.
And then shortly after I have another controller action getting the member from cache but it just does not exist until I visit the backend and manually re-save the data.
It almost feels like it is not saving and publishing but the membership only has a save unlike content which has both save and publish.
I think this is a bug with Umbraco core but has anyone got any ideas to get around this. Possibly a easy way to refresh the member cache within code?
Kind Regards
David
Hello David,
Try to rebuild the umbraco.config file
is working on a reply...