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 1019 posts 1528 karma points MVP
    Jun 07, 2011 @ 13:38
    Jesper Ordrup
    0

    Awesome :-)

    Thanks for yet another cool package.

    Is caching possible?

     

    Best
    Jesper

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jun 08, 2011 @ 09:33
    Lee Kelleher
    2

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies