DataFirefly Cache Clear
Install and use the DataFirefly "Clear cache" button in the PrestaShop 8 and 9 back-office.
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
- Download the
dfclearcache.ziparchive from your DataFirefly account. - In the back-office, open Modules > Module Manager.
- Click Upload a module and select the ZIP.
- 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:
- Click the “Clear cache” button.
- The icon spins during the operation (AJAX purge, no reload).
- 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.