# DataFirefly Cache Clear

> Overview DataFirefly Cache Clear adds a "Clear cache" button right into the PrestaShop back-office toolbar. A single click purges every cache (Smarty, XML, Media and Symfony), without going through Advanced…

- Page: <https://www.datafirefly.com/en/documentation/datafirefly-cache-clear/>
- Language: en
- Last updated: 2026-06-27
- Other languages: [fr](https://www.datafirefly.com/documentation/datafirefly-cache-clear/index.md), [es](https://www.datafirefly.com/es/documentation/datafirefly-cache-clear/index.md), [de](https://www.datafirefly.com/de/documentation/datafirefly-cache-clear/index.md), [it](https://www.datafirefly.com/it/documentation/datafirefly-cache-clear/index.md), [pl](https://www.datafirefly.com/pl/documentation/datafirefly-cache-clear/index.md), [pt](https://www.datafirefly.com/pt/documentation/datafirefly-cache-clear/index.md), [nl](https://www.datafirefly.com/nl/documentation/datafirefly-cache-clear/index.md)
- Index: <https://www.datafirefly.com/en/documentation/llms.txt>

## Overview

DataFirefly Cache Clear adds a "Clear cache" button right into the PrestaShop back-office toolbar. A single click purges every cache (Smarty, XML, Media and Symfony), without going through Advanced Parameters then Performance and without reloading the page.

## Installation

1. Download the `dfclearcache.zip` archive from your DataFirefly account.
2. In the back-office, open **Modules > Module Manager**.
3. Click **Upload a module** and select the ZIP.
4. The module installs and enables automatically.

No configuration required: as soon as it is enabled, the button appears in the toolbar of every admin page.

## Usage

The **"Clear cache"** button appears in the back-office toolbar, next to the page actions and the help button. To purge the cache:

1. Click the **"Clear cache"** button.
2. The icon spins during the operation (AJAX purge, no reload).
3. A green notification confirms "Cache cleared successfully" within a few hundredths of a second.

## What gets cleared

In one click, the module clears:

- the **Smarty cache** (compiled templates);
- the **XML cache**;
- the **media cache** (combined and minified CSS/JS);
- the **Symfony container** of PrestaShop 8/9.

If the Symfony container is unreachable, the module directly removes the contents of the current environment's `var/cache` directory (prod or dev).

## Compatibility

- PrestaShop 8.0 to 9.x
- PHP 7.4 to 8.x
- Single-store and multistore
- Hook used: `displayBackOfficeHeader`

## Troubleshooting

### The button does not appear

Clear your browser cache (Ctrl+F5) after installation: the old back-office CSS may remain cached. Also check that the module is enabled in the Module Manager.

### The button stays on its own line

This display behaviour was fixed in version 1.0.1. Make sure you are using this version or later.

### The click has no visible effect

The purge is silent server-side; only the notification confirms the operation. If no notification appears, check your browser console and the permissions of the logged-in employee.
