Copied to clipboard

Flag this post as spam?

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


  • Shmuel Kessler 9 posts 32 karma points
    Apr 02, 2012 @ 19:15
    Shmuel Kessler
    0

    Cache Duration by Page

    Standard apologies that I couldn't find an answer  - which must already exist - by searching the forum.

    I have caching enabled on a particular macro as well as "Per Page". For most pages, 3600 seconds is perfectly fine since the macro isn't rendering so much content. Imagine a directory and I'm caching the category pages.

    For one page in particular, I'd like the duration to be much longer since the content is much greater. Imagine a directory and I'm caching a "View All Listings" page.

    Is there a way to cache a single node for a different duration than other nodes using the same macro?

    Thanks!

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Apr 03, 2012 @ 12:21
    Lee Kelleher
    0

    Hi Shmuel,

    There isn't a way to define a different cache periods (based on node) for the same macro.  You would either need to increase the cache period across on that macro (which affects all pages), or create a separate macro specifically for the instance that you want a longer cache period. (But that would mean an extra template for a reference to that macro, etc)

    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