Log in
Model

PageCachePlugin

Magento\PageCache\Model\App\PageCachePlugin

What it does

This plugin intercepts page cache save and load operations to automatically compress cached page content using gzip compression, reducing storage space and memory usage.

It adds the required cache tags for proper page cache type management and handles decompression when loading cached pages.

Developers don't directly use this class as it's automatically applied to the PageCache\Cache component through Magento's plugin system.

Public Methods

  • beforeSave()
  • afterLoad()