Magento kan traag zijn zonder juiste caching. In dit artikel leer je hoe je Magento optimaliseert voor snelheid.

Magento Cache Types

Magento heeft meerdere cache types:

Cache Functie
config Configuratie data
layout Layout XML bestanden
block_html HTML blokken
collections Database queries
full_page Volledige pagina's
translate Vertalingen

Cache beheren via CLI

Cache status bekijken

php bin/magento cache:status

Alle cache wissen

php bin/magento cache:flush

Specifieke cache wissen

php bin/magento cache:clean config layout

Cache inschakelen

php bin/magento cache:enable

Full Page Cache (FPC)

FPC is essentieel voor snelle pagina's. Schakel in via:

System > Cache Management

Of via CLI:

php bin/magento cache:enable full_page

Production Mode

Zet Magento in productie modus voor betere performance:

php bin/magento deploy:mode:set production

Dit:

  • Compileert statische bestanden
  • Optimaliseert autoloading
  • Schakelt developer logs uit

Statische content deployen

Na wijzigingen in thema's:

php bin/magento setup:static-content:deploy nl_NL en_US -f

Database optimalisatie

Indexers herbouwen

php bin/magento indexer:reindex

Indexer modus naar schedule

php bin/magento indexer:set-mode schedule

Performance checklist

  • Production mode ingeschakeld
  • Full Page Cache actief
  • Statische content gedeployed
  • Indexers op schedule modus
  • LiteSpeed Cache geconfigureerd
  • PHP OPcache ingeschakeld
  • Database geoptimaliseerd

Hulp nodig?

Magento nog steeds traag? Neem contact op met onze support.