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?
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?
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
is working on a reply...