I need to reload the in-memory and local file cache programmatically.
Is there a method in the Umbraco.Core.Cache that I can call to do that from my SurfaceController or view, just like hitting the reload button here in the backoffice?
For anyone else struggling with V8 cache child deseases when creating content dynamically, waiting for updated documentation and issues to be sorted out, this (as a side effect) will do the trick for this question:
See the last section at the bottom of the page. You can inject AppCaches into your controller by including it in the parameters of the constructor. Then use the AppCaches.RuntimeCache.Clear() method.
Reload cache method
Hi
I need to reload the in-memory and local file cache programmatically.
Is there a method in the Umbraco.Core.Cache that I can call to do that from my SurfaceController or view, just like hitting the reload button here in the backoffice?
For anyone else struggling with V8 cache child deseases when creating content dynamically, waiting for updated documentation and issues to be sorted out, this (as a side effect) will do the trick for this question:
Services.ContentService.EmptyRecycleBin();
I'm having the same problem. Adding some content on first start-up But content not available...
I tried empty recycle bin method but still getting this in the Info tab:
en-US This document is published but is not in the cache
Not sure if this solves your problem (if it's the right cache), but I came across this while migrating my site.
Clearing Cache
See the last section at the bottom of the page. You can inject AppCaches into your controller by including it in the parameters of the constructor. Then use the AppCaches.RuntimeCache.Clear() method.
is working on a reply...