Trouble clearing runtimecache on Umbraco cloud (Umbraco 7.12.5)
I'm using Umbraco.Core.CacheHelper to save a list of news.
Getting and inserting the items is no problem, but clearing the items on updates is however causing some problems for me.
The code is fired in an ApplicationEventHandler on Contentservice.Published, and the code looks like this:
I've tried to use both ClearCacheItem and InsertCacheItem with a null value - none of them works. The only thing that seems to work is to wait the 6 hours I've set as expire time
Trouble clearing runtimecache on Umbraco cloud (Umbraco 7.12.5)
I'm using Umbraco.Core.CacheHelper to save a list of news. Getting and inserting the items is no problem, but clearing the items on updates is however causing some problems for me.
The code is fired in an ApplicationEventHandler on Contentservice.Published, and the code looks like this:
I've tried to use both ClearCacheItem and InsertCacheItem with a null value - none of them works. The only thing that seems to work is to wait the 6 hours I've set as expire time
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.