Copied to clipboard

Flag this post as spam?

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


  • Sagar 74 posts 275 karma points
    Feb 06, 2019 @ 09:05
    Sagar
    0

    File caching in 6.2.2

    Hi,

    Is there a way for file caching in Umbraco version 6.2.2?

    Thanks in advance.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 06, 2019 @ 11:15
    Alex Skrypnyk
    100

    Hi Sagar

    What did you mean file caching? Cache data on the disk?

    Alex

  • Sagar 74 posts 275 karma points
    Feb 06, 2019 @ 11:20
    Sagar
    0

    Hi Alex,

    I need to cache the page data which umbraco is fetching from db on browser.

    Thanks.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 06, 2019 @ 15:25
    Alex Skrypnyk
    0

    Sagar, Umbraco by default cache page data, if you use Umbraco helper and do not use ContentService - everything will be from the cache.

    Can you show the code how do you render the page? how do you retrieve the content?

  • Sagar 74 posts 275 karma points
    Feb 07, 2019 @ 05:59
    Sagar
    0

    Hi Alex,

    I am using IPublishedContent to read data.

    For e.g.

    var latestReport = Model.Content.Children.OrderByDescending(x => x.GetPropertyValue<DateTime>("reportDate")).Take(1).First();
    

    Thanks.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 07, 2019 @ 09:07
    Alex Skrypnyk
    0

    Sagar, it's great, it will not touch the database. Avoid common pitfalls described here - https://our.umbraco.com/documentation/reference/Common-Pitfalls/ and website will perform really well.

  • Sagar 74 posts 275 karma points
    Feb 07, 2019 @ 09:47
    Sagar
    0

    Hi Alex,

    So basically, I did not need to do anything, Umbraco will take care of it ?

    Thanks.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 07, 2019 @ 12:07
    Alex Skrypnyk
    0

    Exactly

  • Sagar 74 posts 275 karma points
    Feb 08, 2019 @ 06:35
    Sagar
    0

    Hi Alex,

    Got it!!

    Thanks for the support.

  • 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