Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Oct 23, 2012 @ 13:55
    Rasmus Fjord
    0

    question: how is the umbraco.config XML cached ?

    Hey there :) 

    I was wondering how/if the umbraco.config xml file is cached. Since ive noticed that if we delete the umbraco.config the content is still accessable and when we restart the solution it will be renegrated.

    The reason why im asking is because we have a huge project that we are in the starting phase of, and i think we could use a similar approach for it. (and its ofc being built upon umbraco but some of the data is being stored outside of data)

    Im gussing its being chached in memory somehow or what ? and how is it done

     

  • Allen Racho 4 posts 25 karma points
    Oct 31, 2012 @ 17:40
    Allen Racho
    1

    Hi Rasmus,

    Yes, I believe your understanding is correct: umbraco.config is automatically generated from and represents all the nodes (content) in your database as an XML structure.

    If this file is deleted, Umbraco will serve content directly from the source (database), and will also re-generate this XML.

    I believe the XML is cached in server memory (probably HttpRuntimeCache, haven't dug into the code to verify), and it is this use of caching which helps make Umbraco as performant as it is - and also resilient to temporary disconnections, where the database becomes unreachable or otherwise inaccessible.

    Regards,

    Allen

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Nov 07, 2012 @ 09:43
    Rasmus Fjord
    0

    Thx Allen for your comment.

     

    yeah thats also the way i was thinking it :) Thx

Please Sign in or register to post replies

Write your reply to:

Draft