emakinafr / magento2-pagecache-bypass
A lightweight module to allow bypassing the built-in page cache with an HTTP parameter.
Installs: 20 017
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 11
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
- magento/magento-composer-installer: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
This package is auto-updated.
Last update: 2025-03-01 00:31:41 UTC
README
A lightweight module to allow bypassing the built-in page cache with an HTTP parameter.
This is especially useful if you want to do some profiling with Blackfire where you can't
afford to disable the page cache.
📦 Installation
composer require emakinafr/magento2-pagecache-bypass bin/magento setup:upgrade
⚙ Configuration
The name of the HTTP parameter used to bypass the built-in page cache can be configured in back-office through:
Stores > Configuration > Advanced > Developer > PageCache Bypass by Emakina.
🚀 Usage
This module does not change the default behavior if you do not pass the bypass parameter.
# The Magento built-in page cache is still used. https://magento2.localhost/ # The Magento built-in page cache is bypassed. https://magento2.localhost/?pagecache_bypass
🤝 Contributing
Contributions, issues and feature requests are welcome!
By the way, don't forget you can give a ⭐️ if this project helped you!
📝 License
Copyright © Emakina. This project is licensed under the MIT license.