emakinafr/magento2-pagecache-bypass

一个轻量级模块,允许通过HTTP参数绕过内置页面缓存。

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

This package is auto-updated.

Last update: 2024-08-29 05:30:55 UTC


README

Magento version MIT License Made by Emakina

一个轻量级模块,允许通过HTTP参数绕过内置页面缓存。
如果您想使用Blackfire进行一些性能分析,而无法禁用页面缓存,这个功能特别有用。[Blackfire](https://blackfire.io/)

📦 安装

composer require emakinafr/magento2-pagecache-bypass
bin/magento setup:upgrade

⚙ 配置

可以通过后台办公室配置用于绕过内置页面缓存的HTTP参数的名称:
商店 > 配置 > 高级 > 开发者 > Emakina页面缓存绕过

🚀 使用

如果您没有传递绕过参数,此模块不会更改默认行为。

# 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

🤝 贡献

欢迎贡献、问题和功能请求!
顺便说一句,别忘了如果这个项目帮到了您,可以给一个 ⭐️!

📝 许可证

版权所有 © Emakina。本项目遵循MIT许可证。