Copied to clipboard

Flag this post as spam?

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


  • Nav 2 posts 22 karma points
    Aug 14, 2013 @ 10:43
    Nav
    0

    ContentService read functions - cache or database?

    Hi There,

    I understand that functions like "SaveAndPublish" update both the database and cache, however just wondering if accessing functions like "GetChildren" and "GetById" utilise cache or do they get their data directly from the database?

    I access them in the following way:

    ApplicationContext.Current.Services.ContentService

    Thanks in advanced!

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 14, 2013 @ 11:19
    Dave Woestenborghs
    0

    If I'm correct ContentService will always query the database.

     

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 14, 2013 @ 11:23
    Dave Woestenborghs
    0

    You can find documentation on how to query content in v6 here : http://our.umbraco.org/documentation/Reference/Mvc/querying

    Dave

  • Nav 2 posts 22 karma points
    Aug 14, 2013 @ 14:36
    Nav
    0

    Hi Dave - All good on the querying front, thanks for confirming that the content service always hits the database! much appreciated!

Please Sign in or register to post replies

Write your reply to:

Draft