Copied to clipboard

Flag this post as spam?

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


  • James Taylor 14 posts 124 karma points
    Jan 24, 2017 @ 15:17
    James Taylor
    0

    How to delete macro cache on publication of new content of certain document type

    Hi,

    We have a site where with document type "news" where new content is published every Tuesday (no content is added in-between).

    There's a macro (and associated template) which generates an RSS feed from the news published in the current week. We've set the macro cache period to 86400 (but I guess this could even be 7 days).

    My question is this: since the RSS macro isn't "associated" with the "news" document type does publishing a "news" item delete the cache? Or, is there a way force the cache to refresh when a "news" item is published?

  • Marc Goodson 2145 posts 14348 karma points MVP 8x c-trib
    Jan 24, 2017 @ 21:17
    Marc Goodson
    100

    Hi James

    If you publish anything in Umbraco, it will clear the macro cache for all macros, regardless if they are associated with the content item published.

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft