← Back to Baseline

Why it Matters

Full Page Cache (FPC) improves Magento performance by caching complete page output. Without FPC, every request is built dynamically, increasing server load and response times. Attackers may exploit slow responses with DoS attempts, and customers will face poor performance.

Enabling FPC ensures pages are served quickly, reduces strain on PHP and database, and helps keep the storefront stable during high traffic.

Verification Steps

Command line

# Check if full_page cache is enabled
bin/magento cache:status | grep full_page

# Expected: full_page: 1 (Enabled)

HTTP header check

# Make a request and inspect response headers
curl -I https://yourstore.com | grep -i X-Magento-Cache-Debug

# Expected: HIT for cached pages, MISS on first load

Remediation / Fix Guidance

  1. Enable FPC if disabled:
    bin/magento cache:enable full_page
  2. Use a fast backend for FPC such as Varnish or Redis for production.
  3. Verify that caching policies are correct for static and dynamic blocks.
  4. Monitor cache hit/miss ratios and optimize layout XML if needed.

Examples

Fail Example
$ bin/magento cache:status | grep full_page
full_page: 0
# FPC disabled → slower pages, higher server load
Pass Example
$ bin/magento cache:status | grep full_page
full_page: 1
# FPC enabled → pages cached, faster response

References