Craft CMS Asked by Matthias Redl-Mann on May 23, 2021
Does anybody know, if it is possible to prevent caching from within the cached code/content?
Something like:
{% cache ... %}
...
{% do notCache %}
...
{% endcache %}
Why? Because if there is a content builder inside of the cache tag, certain content elements could simply disable caching that way by calling {% do notCache %}
No you can't, but you might be able to cache each block individually rather than trying to exclude one of them.
Answered by darylknight on May 23, 2021
You should give No-Cache a try: https://plugins.craftcms.com/nocache
Answered by Ottó Radics on May 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP