Copied to clipboard

Flag this post as spam?

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


  • Stefan G 1 post 71 karma points
    Oct 11, 2017 @ 12:25
    Stefan G
    0

    Hy,

    We are using Umbraco in our project and built our own cache. How can I disable umbraco caching and access content directly from the database?

    My approach was to set

    <XmlCacheEnabled>False</XmlCacheEnabled>
    <UmbracoLibraryCacheDuration>0</UmbracoLibraryCacheDuration>
    

    in umbracoSettings.config. But I do not get the actual content, when I try to query data in the code. It seems that umbraco api continues to query some cache instead of the database.

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 13, 2017 @ 08:11
    Michaël Vanbrabandt
    0

    Hi Stefan,

    can you shw us the code you use for getting the content using the API?

    Did you restart the website after changing the umbracoSettings config or touched the webconfig file in order to restart the application?

    /Michaël

Please Sign in or register to post replies

Write your reply to:

Draft