emakinafr/magento2-pagecache-bypass

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

v1.0.1 2020-07-30 09:59 UTC

This package is auto-updated.

Last update: 2020-09-30 10:21:14 UTC


README

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.