Copied to clipboard

Flag this post as spam?

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

  • Jesper Ordrup 1005 posts 1503 karma points MVP
    Jun 07, 2011 @ 13:38
    Jesper Ordrup

    Thanks for yet another cool package.

    Is caching possible?



  • Lee Kelleher 3972 posts 15390 karma points MVP 11x admin c-trib
    Jun 08, 2011 @ 09:33
    Lee Kelleher

    Thanks Jesper!

    The caching is handled by the MacroEngine container itself (core code) - so it's the same way as you'd do it with inline Razor macros.

    Add an attribute called "Cache" with the number of seconds to cache for...

    <umbraco:Macro runat="server" Language="xslt" FileLocation="xslt/nav.xslt" Cache="300" />

    Not sure how the inline MacroEngines support caching by page/member - would need to dig through the core/source to figure it out.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to: