First time loading page of content type after Umbraco start takes 5x longer
I'm using Umbraco 7.5.6. After starting Umbraco, and each time visiting a page of a content type that hasn't been accessed since that startup takes around 5 times longer. For example, 7000ms instead of 1300. I've gotten these times using Miniprofiler.
It's happening with all document types, maybe it is doing caching after the first time of each? Do you think there's a way to make this happen on startup?
I've also tried with a page with a completely empty template, and it takes 2 seconds to load the first time after building, then 10 - 15ms every time after that
That doesn't seem to make any difference. EDIT: looks like it was already disabled by default
Yeah it is a pretty big website. How do I check if it is using an xml cache?
Also, to give you a bit more information, I run the site and let the homepage fully load up, before loading that page, to ensure that the site has fully loaded up.
First time loading page of content type after Umbraco start takes 5x longer
I'm using Umbraco 7.5.6. After starting Umbraco, and each time visiting a page of a content type that hasn't been accessed since that startup takes around 5 times longer. For example, 7000ms instead of 1300. I've gotten these times using Miniprofiler.
Hi Mahgo,
Can you share code of template this content type?
It will be nice to see more info about his problem.
Thanks,
Alex
Hi Alex,
It's happening with all document types, maybe it is doing caching after the first time of each? Do you think there's a way to make this happen on startup?
I've also tried with a page with a completely empty template, and it takes 2 seconds to load the first time after building, then 10 - 15ms every time after that
Hi Mahgo
Try to disable "XmlContentCheckForDiskChanges" key in Umbraco settings. Read about settings here - https://our.umbraco.org/documentation/reference/config/umbracosettings/
Do you have a huge website?
Is it using xml cache?
Thanks
Alex
Hi Alex,
That doesn't seem to make any difference. EDIT: looks like it was already disabled by default
Yeah it is a pretty big website. How do I check if it is using an xml cache?
Also, to give you a bit more information, I run the site and let the homepage fully load up, before loading that page, to ensure that the site has fully loaded up.
Yeah it looks like it is using the XML cache. I don't have XmlCacheEnabled specified in my umbracoSettings but the default value is true.
Hi Mahgo
What if you try to change this setting?
Setting XmlCacheEnabled to true didn't really affect it.
what about false?
Woops sorry, I meant to say false.
Any more ideas?
is working on a reply...