Skip to content

Gestion du cache

This content is not available in your language yet.

  • magerun2 cache:clean
  • magerun2 cache:flush

Plus d’informations ici : https://experienceleague.adobe.com/fr/docs/commerce-operations/configuration-guide/cli/manage-cache

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

Utiliser redis-cli pour vider le cache :

redis-cli -p 6134 -a 123456 FLUSHALL

  • 6134 = port
  • 123456 = mot de passe
  • 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

Connectez-vous au dashboard : https://dash.cloudflare.com/ puis Caching > Configuration > Vider tous les éléments.

Malgré ces astuces le cache persiste ? Vous pouvez nous contacter :