Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomsen 112 posts 335 karma points
    Mar 27, 2019 @ 07:29
    Thomsen
    0

    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?

    enter image description here

  • Thomsen 112 posts 335 karma points
    Mar 29, 2019 @ 18:26
    Thomsen
    0

    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();

  • Richard Hamilton 36 posts 158 karma points
    Jul 29, 2020 @ 09:02
    Richard Hamilton
    0

    I'm having the same problem. Adding some content on first start-up But content not available...

  • Richard Hamilton 36 posts 158 karma points
    Jul 29, 2020 @ 09:09
    Richard Hamilton
    0

    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

  • Stuart Mullinger 79 posts 422 karma points
    Aug 06, 2020 @ 11:29
    Stuart Mullinger
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft