Copied to clipboard

Flag this post as spam?

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

  • Marc-André 63 posts 279 karma points
    Oct 17, 2019 @ 13:04


    I try to improve my website's performance and I'd realize that macros really slows up my load time. I use the ?umbDebug=true to measure it.

    Everytime I use a macro, I can see my loadtime gain ~50ms. I tried to set a cache period but it dosen't seems to change anything. I ended up by using only partials but Macro is a way more intuitive with their custom parameters.

    Anyone got a solution for me or I should never use macros?

    Thanks a lot guys!

  • Steve Megson 151 posts 1000 karma points MVP c-trib
    Oct 17, 2019 @ 15:34
    Steve Megson

    I'm not seeing a delay as high as 50ms, but it looks like the macro renderer always hits the database to look up the macro's details from the alias. This happens even if you've set a cache period for the macro result, because it has to get the macro's details to know what to look for in the cache.

    Unfortunately I think that it'll need a fix in the core, and there's no easy workaround you can apply yourself.

Please Sign in or register to post replies

Write your reply to: