Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Cache.disable ViewHelper <f:cache.disable>
ViewHelper to disable template compiling
Inserting this ViewHelper at any point in the template, including inside conditions which do not get rendered, will forcibly disable the caching/compiling of the full template file to a PHP class.
Use this if for whatever reason your platform is unable to create or load PHP classes (for example on read-only file systems or when using an incompatible default cache backend).
Passes through anything you place inside the ViewHelper, so can safely be used as container tag, as self-closing or with inline syntax - all with the same result.
Examples
Self-closing
<f:cache.disable />
Inline mode
{f:cache.disable()}
Container tag
<f:cache.disable>
Some output or Fluid code
</f:cache.disble>
Additional output is also not compilable because of the ViewHelper
Source code
Go to the source code of this ViewHelper: DisableViewHelper.php (GitHub).
Note
<f:
has no arguments.