Copied to clipboard

Flag this post as spam?

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


  • Mike Chambers 636 posts 1253 karma points c-trib
    Nov 04, 2010 @ 02:36
    Mike Chambers
    0

    Is it possible to disable in memory umbraco.config mechanism?

    Umbraco is started for the first time, and the xml file is created from the DB contents.
    The xml is then loaded into memory for rapid access.
    When you publish a page, the change is written to DB and to the xml in memory.
    Next time umbraco is restarted, it will update the xml file on the disk.

     

    Is it possible to disable use of the in memory process? so that the umbraco.config file is always up to date and always refered to.

    I know this will be a performance hit, but trying to get it to work at our hosts, where we have a clustered environment but a single file store. (eg the in memory xml ends up in several separate instances... and depending on which cluster the admin is done on we end up with differing in memory xml) if we were to source from the file system then all cluster/nodes would be identical.

    Alternatively is it possible to schedule a task to reload the in memory xml?? to sync across all the clusters from the file store?

  • Mike Chambers 636 posts 1253 karma points c-trib
    Nov 04, 2010 @ 17:45
    Mike Chambers
    0

    found what I thought would be the solution

    XmlCacheEnabled: Turn Xml caching of content on/off. Umbraco Makes heavy use of caching content in memory to avoid database calls. This makes umbraco faster and more efficient. You should not in any way turn this off, unless you have a very good reason to do so. It will make your website very slow.

    umbracosettings.config

        <!-- Enable / disable xml content cache -->

        <XmlCacheEnabled>False</XmlCacheEnabled>

    However, even after setting this we are still seeing out of date data across the cluster.

     

    would this setting also play a role,

    ContinouslyUpdateXmlDiskCache: Update the XmlCache whenever content is published

    I presume this is meaning update the phyical app_data/umbraco.config file on each publish so actually this is something that is desirable for propagating the xml file across the whole cluster.

    Hence I have this set to true.

  • John Kyle 2 posts 22 karma points
    Jan 05, 2011 @ 15:52
    John Kyle
    0

    Did you find a solution to the caching issue?

Please Sign in or register to post replies

Write your reply to:

Draft