📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v3.1.0

Bypass Page Cache for Magento 2

phpro/mage2-module-bypass-page-cache

Allows bypassing the Magento 2 full page cache based on a configurable HTTP header. Useful for development, staging, and profiling with tools like Blackfire. Only for the built-in cache.

32,875
Downloads
Below average
1
GitHub Stars
Below average
4y ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
15 warnings
L1 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v3.1.0 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Bypass Page Cache for Magento 2 Magento compatibility status badge

README

Loaded from GitHub

Bypass Page Cache for Magento 2

In some cases we want to be able to bypass Magento's full page cache. For example, when profiling a page using Blackfire, we want to test the performance of the page without full page cache.

Installation

composer require phpro/mage2-module-bypass-page-cache

Key features

Configuration

To use this feature, you have to activate it in the backend Stores > Configuration > Advanced > System > Full Page Cache > Enable Full Page Cache Bypass

This setting is only available when you use the Built-in Cache. This feature is not relevant when you use Varnish.

Note: this is meant to be used on development and staging environments. Make sure this is disabled in production.

Blackfire

This module was built to be used with Blackfire.

When creating profiles in Blackfire, you need to be able to bypass the full page cache. Magento 2 does not provide an easy way to bypass the full page cache, so we created this module.

Blackfire adds the header X-Blackfire-Query when profiling over HTTP. When this header exists your request, the full page cache will be ignored.

Custom header

The module is created to work with the Blackfire header by default. If you want to use this feature, but need a different header, you can override the default configuration.

Add the following in the file config.xml of a project module.

<default>
    <system>
        <full_page_cache>
            <bypass_header>My-Custom-Header</bypass_header>
        </full_page_cache>
    </system>
</default>

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.