Copied to clipboard

Flag this post as spam?

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


  • Adam Nelson 27 posts 186 karma points c-trib
    Jun 25, 2019 @ 05:36
    Adam Nelson
    0

    Where is umbraco.config in v8?

    Looking at Umbraco 8 and what it would take to switch to it over from v7.

    As a long time user (since v4), I've often relied on the umbraco.config file to run custom parsing over the file for reporting or analysis. In fact I wrote a nuget package to do that: https://www.nuget.org/packages/RecursiveMethod.UmbracoXmlParser

    I just fired up a Nuget version of 8.0.2 and installed the starter kit, but I can't find the umbraco.config inside App_Data. I forced some settings which should have ensured it gets created, but still can't see it:

    <add key="umbracoContentXMLUseLocalTemp" value="false"/>
    <add key="umbracoContentXML" value="~/App_Data/umbraco.config" />
    <add key="umbracoLocalTempStorage" value="Default" />
    

    What gives? Does Umbraco not use an XML cache anymore?

    Thanks, Adam.

  • Carl Sjöholm 44 posts 327 karma points
    Jun 25, 2019 @ 05:53
    Carl Sjöholm
    100

    Hi Adam,

    No it does not. It uses NuCache which is a local store, this saves time and resources on database calls etc.

    // Carl

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Jun 25, 2019 @ 06:54
    Søren Gregersen
    1

    if you really need some insights into the cache, have a look at this tool https://creativewebspecialist.co.uk/2018/07/30/peek-inside-umbraco-v8-nucache-files-with-the-nucache-explorer-tool/

    If you want to, there is still a way to execute XPath queries against NuCache.

    HTH

  • Adam Nelson 27 posts 186 karma points c-trib
    Jun 25, 2019 @ 07:04
    Adam Nelson
    0

    Thank you both Carl and Søren. I'll check out NuCache, and maybe add support to my nuget package for it.

    Cheers, Adam.

  • Adam Nelson 27 posts 186 karma points c-trib
    Jun 26, 2019 @ 10:12
    Adam Nelson
    0

    With thanks to Warren's work, my nuget package can now read and analyse both the umbraco.config (v4/v6/v7) and the NuCache.content.db (v8.0.1 and later).

    This package makes it easy to write simple C# code that runs custom analysis over the content and check for missing values in properties, or to count articles by doctype, or to create reports based on content.

    I did find that Warren's great work at only works against the NuCache v8.0.0 schema, due to a binary change to the database in March 2019 that broke Warren's tool (although it's easy enough to fix).

    Thanks everyone for your help.

    Cheers, Adam.

Please Sign in or register to post replies

Write your reply to:

Draft