Gestion du cache
This content is not available in your language yet.
Vider le cache Magento 2
Section intitulée « Vider le cache Magento 2 »magerun2 cache:cleanmagerun2 cache:flush
Plus d’informations ici : https://experienceleague.adobe.com/fr/docs/commerce-operations/configuration-guide/cli/manage-cache
Vider le cache Varnish
Section intitulée « Vider le cache Varnish »Redémarrer Varnish a pour effet de vider tout le cache :
sudo /bin/systemctl restart varnish-prod-m2
ou
curl -X PURGE -H 'X-Magento-Tags-Pattern: .*' -H "Host: example.com" http://127.0.0.1:10080/
- monsite.com = domaine
- 10080 = port
Pour vider spécifiquement une page :
curl -X PURGE -H 'X-Magento-Tags-Pattern: .*' -H "Host: example.com" http://127.0.0.1:10080/my-url
- monsite.com = domaine
- 10080 = port
- my-url = page
Vider le cache Redis
Section intitulée « Vider le cache Redis »Utiliser redis-cli pour vider le cache :
redis-cli -p 6134 -a 123456 FLUSHALL
- 6134 = port
- 123456 = mot de passe
Vider le cache OPcache (PHP)
Section intitulée « Vider le cache OPcache (PHP) »-
php7.4 /usr/local/bin/cachetool opcache:reset -t /tmp/ --fcgi=/run/php/php7.4-ab12345-1234.sock -
php7.4 = version PHP
-
ab12345-1234 = nom du projet
Vider le cache Cloudflare
Section intitulée « Vider le cache Cloudflare »Connectez-vous au dashboard : https://dash.cloudflare.com/ puis Caching > Configuration > Vider tous les éléments.
Je n’arrive pas à vider mon cache ?
Section intitulée « Je n’arrive pas à vider mon cache ? »Malgré ces astuces le cache persiste ? Vous pouvez nous contacter :
- par e-mail : support@fast-mage.com
- par téléphone au +33 (0) 97 239 2222.