Skip to content

A lightweight module to allow bypassing the built-in page cache with an HTTP parameter.

License

Notifications You must be signed in to change notification settings

EmakinaFR/magento2-pagecache-bypass

Repository files navigation

Magento - PageCache Bypass

Magento version MIT License Made by Emakina

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.