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?
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!
If I'm correct ContentService will always query the database.
You can find documentation on how to query content in v6 here : http://our.umbraco.org/documentation/Reference/Mvc/querying
Dave
Hi Dave - All good on the querying front, thanks for confirming that the content service always hits the database! much appreciated!
is working on a reply...