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 422 posts 1243 karma points MVP 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

Please Sign in or register to post replies

Write your reply to:

Draft