Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Is there a way for file caching in Umbraco version 6.2.2?
Thanks in advance.
Hi Sagar
What did you mean file caching? Cache data on the disk?
Alex
Hi Alex,
I need to cache the page data which umbraco is fetching from db on browser.
Thanks.
Sagar, Umbraco by default cache page data, if you use Umbraco helper and do not use ContentService - everything will be from the cache.
Can you show the code how do you render the page? how do you retrieve the content?
I am using IPublishedContent to read data.
For e.g.
var latestReport = Model.Content.Children.OrderByDescending(x => x.GetPropertyValue<DateTime>("reportDate")).Take(1).First();
Sagar, it's great, it will not touch the database. Avoid common pitfalls described here - https://our.umbraco.com/documentation/reference/Common-Pitfalls/ and website will perform really well.
So basically, I did not need to do anything, Umbraco will take care of it ?
Exactly
Got it!!
Thanks for the support.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
File caching in 6.2.2
Hi,
Is there a way for file caching in Umbraco version 6.2.2?
Thanks in advance.
Hi Sagar
What did you mean file caching? Cache data on the disk?
Alex
Hi Alex,
I need to cache the page data which umbraco is fetching from db on browser.
Thanks.
Sagar, Umbraco by default cache page data, if you use Umbraco helper and do not use ContentService - everything will be from the cache.
Can you show the code how do you render the page? how do you retrieve the content?
Hi Alex,
I am using IPublishedContent to read data.
For e.g.
Thanks.
Sagar, it's great, it will not touch the database. Avoid common pitfalls described here - https://our.umbraco.com/documentation/reference/Common-Pitfalls/ and website will perform really well.
Hi Alex,
So basically, I did not need to do anything, Umbraco will take care of it ?
Thanks.
Exactly
Hi Alex,
Got it!!
Thanks for the support.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.