Copied to clipboard

Flag this post as spam?

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


  • Jahan 20 posts 52 karma points
    Sep 04, 2016 @ 15:37
    Jahan
    0

    Implement a cache for a dynamic list

    Hello everybody!

    I asked a question in stackoverflow website about implementing a cache for a dynamic list.

    http://stackoverflow.com/q/39250784/1817640

    I do not understand exactly his answer.Please help me.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Sep 05, 2016 @ 14:13
    Alex Skrypnyk
    0

    Hi Jahan,

    Did you try to use CachedPartial?

    IHtmlString CachedPartial(
        string partialViewName,
        object model,
        int cachedSeconds,
        bool cacheByPage = false,
        bool cacheByMember = false,
        ViewDataDictionary viewData = null)
    

    https://our.umbraco.org/documentation/reference/templating/mvc/partial-views

    You can put to cache all your partial.

    Thanks,

    Alex

  • 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