PHPackages                             phpro/mage2-module-bypass-page-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. phpro/mage2-module-bypass-page-cache

ActiveMagento2-module[HTTP &amp; Networking](/categories/http)

phpro/mage2-module-bypass-page-cache
====================================

Bypass the page cache by adding a specific header to the request

3.1.0(4y ago)134.2k↓11.8%1MITPHPPHP ^7.0 || ^8.0

Since Jun 26Pushed 4y ago3 watchersCompare

[ Source](https://github.com/phpro/phpro-mage2-module-bypass-page-cache)[ Packagist](https://packagist.org/packages/phpro/mage2-module-bypass-page-cache)[ RSS](/packages/phpro-mage2-module-bypass-page-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

[![](https://github.com/phpro/phpro-mage2-module-bypass-page-cache/workflows/.github/workflows/grumphp.yml/badge.svg)](https://github.com/phpro/phpro-mage2-module-bypass-page-cache/workflows/.github/workflows/grumphp.yml/badge.svg)

Bypass Page Cache for Magento 2
===============================

[](#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
------------

[](#installation)

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

Key features
------------

[](#key-features)

### Configuration

[](#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

[](#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

[](#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.

```

            My-Custom-Header

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~342 days

Total

3

Last Release

1468d ago

Major Versions

2.0.0 → 3.0.02020-09-25

PHP version history (2 changes)2.0.0PHP ^7.0

3.1.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cab1b0de06c75fec5317beded0c2978f3e9e560e6830c1d9048f3e37b3287342?d=identicon)[phpro](/maintainers/phpro)

---

Top Contributors

[![vrielsa](https://avatars.githubusercontent.com/u/33426821?v=4)](https://github.com/vrielsa "vrielsa (10 commits)")[![siebdc2](https://avatars.githubusercontent.com/u/104489060?v=4)](https://github.com/siebdc2 "siebdc2 (3 commits)")

### Embed Badge

![Health badge](/badges/phpro-mage2-module-bypass-page-cache/health.svg)

```
[![Health](https://phpackages.com/badges/phpro-mage2-module-bypass-page-cache/health.svg)](https://phpackages.com/packages/phpro-mage2-module-bypass-page-cache)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[yireo/magento2-linkpreload

Magento 2 extension to set HTTP Link headers for primary resources to allow for HTTP/2 preloading

92343.7k1](/packages/yireo-magento2-linkpreload)[developersalliance/module-table-rates

This module allows administrators to manage and view shipping table rates from the admin UI.

443.4k](/packages/developersalliance-module-table-rates)[integer-net/magento2-async-varnish

Module for Magento 2 that defers and bundles purge requests to Varnish to reduce number of HTTP requests and increase speed of mass updates

221.3k](/packages/integer-net-magento2-async-varnish)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
