Copied to clipboard

Flag this post as spam?

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


  • Thomas Kjær Nielsen 58 posts 88 karma points
    Aug 20, 2010 @ 11:27
    Thomas Kjær Nielsen
    1

    Macro caching Best Practice

    Hi

    I would like to know a bit more about what the best way to cache macros in Umbraco is.

    • Like, wich parts do you normally cache?
    • How do you structure your code to cache optimal?
    • For how long is a good time to cache elements?
    Any inputs?
    Thx
    Thomas

  • Sascha Wolter 615 posts 1101 karma points
    Aug 21, 2010 @ 02:17
    Sascha Wolter
    1

    Hi Thomas,

    that totally depends on what you are displaying and how often the underlying data will change. So for instance say the top menu of a site will probably not change that often, yet I'm pretty sure that if your client changes it every once in a while they will probably send you an email immediately after they can't see any of their changes on the frontend after a while. On the other hand you might have a list of countries in a drop down on your user registration page - that might not change in a very long time. So it might be a good idea to just cache it for something like 24 hours.

    Cheers,
    Sascha

  • Thomas Kjær Nielsen 58 posts 88 karma points
    Aug 26, 2010 @ 16:08
    Thomas Kjær Nielsen
    0

    Thanks a lot for your input!

  • Rik Helsen 670 posts 873 karma points
    Sep 01, 2010 @ 17:24
    Rik Helsen
    0

    Does "cache by page" take querystrings into account?

Please Sign in or register to post replies

Write your reply to:

Draft