Copied to clipboard

Flag this post as spam?

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


  • Iain 8 posts 72 karma points
    Feb 11, 2011 @ 13:17
    Iain
    0

    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

     

  • Iain 8 posts 72 karma points
    Feb 11, 2011 @ 13:40
    Iain
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft