Copied to clipboard

Flag this post as spam?

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


  • Jason Prothero 416 posts 1226 karma points c-trib
    Dec 04, 2014 @ 01:50
    Jason Prothero
    0

    What is the best way to Refresh the cache of a single Content Node using the v7 API?

    If I wanted to simply have the cached XML in the DB written to the on disk XML file for a single node, what API call would I use?

    I wasn't able to find one, so I'm using code from the DistributedCache internal Umbraco extension method RefreshPageCache()

    DistributedCache.Instance.Refresh(new Guid(DistributedCache.PageCacheRefresherId), nodeId);

    Is there a better way to do this?  Will this cause problems?

     

    Thanks,
    Jason

  • 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.

Please Sign in or register to post replies