I have an umbraco page which contains 15 Macros, and is loading slowly. I looked at the stack trace and noticed that 3 of the macros are taking a (relative) age to load from cache. All of these macros have the Cache By Page attribute ticked, but the Cache Period is set to 0 seconds (I believe this is the default, I didn't create the Macros personally). I have tested Macro Caching, but as the controls are dynamic they didn't work.
Here is the trace, shortened to just the Macro Loaded from Cache lines for the 15 macros:
umbracoMacroMacro
loaded from cache (ID: 22, [XSLT] Code References)0.002688978184450160.000058
umbracoMacroMacro
loaded from cache (ID: 23, [XSLT] Header Logo)0.003622421846651830.000058
umbracoMacroMacro
loaded from cache (ID: 19, [XSLT] Header contact)0.5543822127337690.000079
umbracoMacroMacro
loaded from cache (ID: 13, [UserControl] Agent info)0.5595413032501580.000057
umbracoMacroMacro
loaded from cache (ID: 54, [UserControl] Mini basket)0.5602121078893460.000108
umbracoMacroMacro
loaded from cache (ID: 17, [XSLT] Header navigation)0.5611182893137790.000156
umbracoMacroMacro
loaded from cache (ID: 48, [XSLT] Header progress bar)0.5728733054695340.000054
umbracoMacroMacro
loaded from cache (ID: 20, [UserControl] Flight search)0.5936743928872440.000109
umbracoMacroMacro
loaded from cache (ID: 21, [UserControl] Car search)1.138312083506920.537159
umbracoMacroMacro
loaded from cache (ID: 34, [UserControl] Hotel search)1.142667897947080.000329
umbracoMacroMacro
loaded from cache (ID: 55, [UserControl] Holiday search)1.818466518324260.672293
umbracoMacroMacro
loaded from cache (ID: 61, [XSLT] Carousel)2.491715927482450.667841
umbracoMacroMacro
loaded from cache (ID: 62, [XSLT] Side Offers)3.160271240067040.000059
umbracoMacroMacro
loaded from cache (ID: 63, [XSLT] Offer Panels)3.79885882576550.000058
umbracoMacroMacro
loaded from cache (ID: 12, [XSLT] Footer)3.801302059834850.000056
As you can see 3 of the macros are taking over half a second each, while the other 13 are taking only 0.001181 seconds combined.
What is actually happening during the "Macro loaded from cache" line in the trace? Is it loading it from the in memory cache? Is it actually doing something more underneath?
After more poking around, removing Macros, re-ordering Macros, it seems that it isn't specific to those individual macros. It appears that whichever are the 9th, 11th and 12th in the list are taking the long time to load???!!!
Does anyone have any idea why this might be happening?
Some Macros Slow Loading
Hi,
I have an umbraco page which contains 15 Macros, and is loading slowly. I looked at the stack trace and noticed that 3 of the macros are taking a (relative) age to load from cache. All of these macros have the Cache By Page attribute ticked, but the Cache Period is set to 0 seconds (I believe this is the default, I didn't create the Macros personally). I have tested Macro Caching, but as the controls are dynamic they didn't work.
Here is the trace, shortened to just the Macro Loaded from Cache lines for the 15 macros:
umbracoMacro Macro loaded from cache (ID: 22, [XSLT] Code References) 0.00268897818445016 0.000058
umbracoMacro Macro loaded from cache (ID: 23, [XSLT] Header Logo) 0.00362242184665183 0.000058
umbracoMacro Macro loaded from cache (ID: 19, [XSLT] Header contact) 0.554382212733769 0.000079
umbracoMacro Macro loaded from cache (ID: 13, [UserControl] Agent info) 0.559541303250158 0.000057
umbracoMacro Macro loaded from cache (ID: 54, [UserControl] Mini basket) 0.560212107889346 0.000108
umbracoMacro Macro loaded from cache (ID: 17, [XSLT] Header navigation) 0.561118289313779 0.000156
umbracoMacro Macro loaded from cache (ID: 48, [XSLT] Header progress bar) 0.572873305469534 0.000054
umbracoMacro Macro loaded from cache (ID: 20, [UserControl] Flight search) 0.593674392887244 0.000109
umbracoMacro Macro loaded from cache (ID: 21, [UserControl] Car search) 1.13831208350692 0.537159
umbracoMacro Macro loaded from cache (ID: 34, [UserControl] Hotel search) 1.14266789794708 0.000329
umbracoMacro Macro loaded from cache (ID: 55, [UserControl] Holiday search) 1.81846651832426 0.672293
umbracoMacro Macro loaded from cache (ID: 61, [XSLT] Carousel) 2.49171592748245 0.667841
umbracoMacro Macro loaded from cache (ID: 62, [XSLT] Side Offers) 3.16027124006704 0.000059
umbracoMacro Macro loaded from cache (ID: 63, [XSLT] Offer Panels) 3.7988588257655 0.000058
umbracoMacro Macro loaded from cache (ID: 12, [XSLT] Footer) 3.80130205983485 0.000056
As you can see 3 of the macros are taking over half a second each, while the other 13 are taking only 0.001181 seconds combined.
What is actually happening during the "Macro loaded from cache" line in the trace? Is it loading it from the in memory cache? Is it actually doing something more underneath?
And why would 3 macros take so long to load?
Thanks,
Iain
Hi, quick update.
After more poking around, removing Macros, re-ordering Macros, it seems that it isn't specific to those individual macros. It appears that whichever are the 9th, 11th and 12th in the list are taking the long time to load???!!!
Does anyone have any idea why this might be happening?
Ta, Iain
is working on a reply...