This module lets you enable full page cache debug headers in production mode.
This module requires PHP 8.1 and at least Magento 2.4.4.
- Require the package:
composer require imi/magento2-cache-debug
- Enable the module:
bin/magento module:enable IMI_CacheDebug
bin/magento setup:upgrade
- Enable it the configuration:
- Via CLI:
bin/magento config:set system/full_page_cache/production_logging_enabled 1
- Or in the adminpanel under Stores > Settings > Configuration > Advanced > System > Full Page Cache > Enable Logging in Production
- Flush config cache:
bin/magento cache:flush config
Download this repository and extract it under app/code/IMI/CacheDebug, then follow steps 2.- 4. of the installation via composer.