I have a macro that renders a rich text field. Most of the pages that uses the template that contains this macro, should be completely cached. But on some pages the editors will be inserting contour forms (or other dynamic content) into the rich text field. In this case I do not want the content to be cached.
So in short. Is it possible to automatically disable the cache of pages when the content of the rich text field is of a certain type? Fx if I can detect that the rich text field contains a contour form?
Without writing code, you could have two Macro definitions pointing to the same script; one with cache on and the other off. If the macros are hard coded in the template then you could wrap the macro with a contentplaceholder and then create a child template of that template with the non-cached macro replacing the content inside the placeholder. Just have to educate the content contributors to select the non-cached template when dropping in a Contour form.
Turn off caching if content is dynamic
Hi
I have a macro that renders a rich text field. Most of the pages that uses the template that contains this macro, should be completely cached. But on some pages the editors will be inserting contour forms (or other dynamic content) into the rich text field. In this case I do not want the content to be cached.
So in short. Is it possible to automatically disable the cache of pages when the content of the rich text field is of a certain type? Fx if I can detect that the rich text field contains a contour form?
Regards,
Nikolaj
Without writing code, you could have two Macro definitions pointing to the same script; one with cache on and the other off. If the macros are hard coded in the template then you could wrap the macro with a contentplaceholder and then create a child template of that template with the non-cached macro replacing the content inside the placeholder. Just have to educate the content contributors to select the non-cached template when dropping in a Contour form.
is working on a reply...