---
title: "Cache"
manual: "Handlebars"
version: "main"
permalink: "https://docs.typo3.org/permalink/cpsit/typo3-handlebars:cache@main"
source: "Configuration/Cache.rst"
rendered: "2026-09-29T09:05:57+00:00"
---

# Cache {#cache}

The extension registers a cache named `handlebars` that stores compiled
Handlebars templates. The cache is registered automatically on extension
activation; no manual setup is required.

The default backend is the TYPO3 database cache. To use a different backend,
add an override to your extension's `ext_localconf.php` file:

**ext_localconf.php**

```php
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['handlebars']['backend'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['handlebars']['backend']
        = \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::class;
}
```

> [!NOTE]
> **See also**
>
> [Caching in TYPO3](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/CachingFramework/Configuration/Index.html#caching-configuration) for all
> available backends and their configuration options.
