---
title: "Cache.disable ViewHelper <f:cache.disable>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-cache-disable"
source: "ViewHelpers/Fluid/Cache/Disable.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# Cache.disable ViewHelper `<f:cache.disable>` {#typo3fluid-fluid-cache-disable}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/Cache/Disable.html) instead.

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 {#examples}

### Self-closing {#self-closing}

```php
<f:cache.disable />

```

### Inline mode {#inline-mode}

```php
{f:cache.disable()}

```

### Container tag {#container-tag}

```php
<f:cache.disable>
   Some output or Fluid code
</f:cache.disable>

```

Additional output is also not compilable because of the ViewHelper

Go to the source code of this ViewHelper: [Cache\\DisableViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/Cache/DisableViewHelper.php).
