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
    Aug 11, 2009 @ 18:00
    Jesper Ordrup
    0

    Caching

    Looks cool. I'm looking forward to trying it out. Does it support caching?

    /Jesper

  • Chris Koiak 700 posts 2626 karma points
    Aug 12, 2009 @ 08:52
    Chris Koiak
    0

    Hi Jesper,

    It caches the loaded xslt file with a CacheDependency on the file. However it doesn't cache the generate html and the xslt transformation is applied on every page access. 

    Do you think caching the generated html would be of benefit? What about an optional parameter in a config file (or on the control) that could set caching on or off?

    I sometimes import one xslt file into another and having this default xslt file caching can be a pain. If you edit the 'child' xslt file then the cache isn't refershed, you also need to edit the main xslt to get the cache to refresh.

    I'll add caching option support for the next release. Do you think cacheXslt="true/false" and cacheHtml="true/false" at both a Control and global level would be enough?

    Chris

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Sep 06, 2009 @ 17:08
    Lee Kelleher
    0

    The "cacheXslt" / "cacheHtml" attributes would be the way to go... with the "cacheXslt" to true, and cacheHtml to false as default.

    With adding these extra capibilities to the XslResult control it is not becoming more like creating a macro (without actually creating the macro)? But isn't that the whole point?

    If so, then might be worthwhile suggesting it for inclusion in the Umbraco core? (I think it's too late for v4.1, but v5 maybe?)

  • Chris Koiak 700 posts 2626 karma points
    Sep 06, 2009 @ 20:32
    Chris Koiak
    3

    Done!

    I've released a new version with additional optional caching parameters. The idea behind this control is to use xslt's without creating any macros (and to reduce the required number of DB calls on the front end)

    I'd be more than happy for this to go back into the core.

    Enjoy,

    Chris

  • Chris Koiak 700 posts 2626 karma points
    Sep 06, 2009 @ 20:45
    Chris Koiak
    0

    I really wish there was an 'Updated Projects' list on the projects page.... it'd give updates like this more visibility.

  • Daniel Lindstrom 454 posts 271 karma points
    Oct 24, 2009 @ 11:57
    Daniel Lindstrom
    0

    How does the caching of xslt transformation output work:

    Is the output cached with a depency on the file or cached xslt?

    For how long does it keep the cache?

    Does it cache the output once for the template or page or user or both user and page?

    As you might understand I wish for even more configurable caching options!

  • Jonas Eriksson 930 posts 1825 karma points
    Mar 10, 2010 @ 13:26
    Jonas Eriksson
    0

    Hi Chris!

    So to disable caching completely one just have to set cacheXslt="false" and cacheHtml="false", right?

    If one would like to have cache per user, one need a regular macro, right? ("cache personalized")

    Regards

    Jonas

  • Chris Koiak 700 posts 2626 karma points
    Mar 10, 2010 @ 16:03
    Chris Koiak
    0

    Yep that's correct.

    There's no way to configure XLSTResult for personal caching.

     

Please Sign in or register to post replies

Write your reply to:

Draft