Copied to clipboard

Flag this post as spam?

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


  • Alistair Kidd 2 posts 72 karma points
    Feb 15, 2017 @ 21:44
    Alistair Kidd
    0

    Using Runtime Cache with Umbraco

    Hi,

    I've been adding caching to a new-ish Umbraco application as part of performance improvement project. As advised in the documentation i've used the Umbraco helper method(s).

    https://our.umbraco.org/documentation/reference/cache/updating-cache

    However, I've also found some existing code that uses HttpContext.Current.Cache directly which contradicts the following:

    "You shouldn't be using HttpRuntime.Cache or HttpContext.Current.Cache directly, you should always be accessing it via the ApplicationContext.ApplicationCache object"

    Should i be concerned about this and re-write to use the Umbraco caching implementation or can i happily leave the code alone?

    Any thoughts would be appreciated.

    Thanks,

    Alistair

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Aug 01, 2018 @ 08:34
    Alex Skrypnyk
    0

    Hi Alistair

    Can you share with our community how did you do a caching and what pitfalls, maybe?

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft