PHPackages                             jetrails/magento2-varnish - 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. [Caching](/categories/caching)
4. /
5. jetrails/magento2-varnish

ActiveMagento2-module[Caching](/categories/caching)

jetrails/magento2-varnish
=========================

Magento 2 extension which interfaces with the Varnish caching application in order to manage it through the Magento backend

3.0.6(1y ago)830.8k↓18.7%2[1 PRs](https://github.com/jetrails/magento2-varnish/pulls)proprietaryPHPPHP &gt;=7.2

Since Jul 10Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/jetrails/magento2-varnish)[ Packagist](https://packagist.org/packages/jetrails/magento2-varnish)[ RSS](/packages/jetrails-magento2-varnish/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (22)Used By (0)

Magento 2 - Varnish
===================

[](#magento-2---varnish)

> Magento 2 extension which interfaces with the Varnish® caching application in order to manage it through the Magento backend.

[![](https://camo.githubusercontent.com/d3c71522ec1a281b44d51e40dd523da66f8e579f4a56770f5496f5597703f02a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4a65745261696c735f4c6963656e73652d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/d3c71522ec1a281b44d51e40dd523da66f8e579f4a56770f5496f5597703f02a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4a65745261696c735f4c6963656e73652d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/e89ca46fd25e98cf3c4e43bc144937f58f67277817c432e3095095df0e9b0734/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d332e302e362d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/e89ca46fd25e98cf3c4e43bc144937f58f67277817c432e3095095df0e9b0734/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d332e302e362d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/d547c304a52f2656aff573e9c5223a54525f82ab3434f5c62b40a8dc1cb73802/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746162696c6974792d537461626c652d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/d547c304a52f2656aff573e9c5223a54525f82ab3434f5c62b40a8dc1cb73802/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746162696c6974792d537461626c652d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765)

 [![](docs/images/preview.png)](docs/images/preview.png)

About
-----

[](#about)

This module helps manage varnish Cache™ for your Magento 2 store. It supports a multiple varnish server configuration. Purge requests can be sent to all these servers in order to purge a specific URL, a specific Magento tag, custom ban rule, or simply to purge all the cache that is contained in said varnish server. Cache exclusion rules can be set to not cache paths or Magento routes. Finally, there exists a *debug* mode that will display if Varnish FPC was used in loading the page and which exclusion rules should be blamed if the page is excluded.

Documentation
-------------

[](#documentation)

The user manual can be found [here](https://learn.jetrails.com/article/magento-2-varnish-extension). The information there goes over all the features that the extension offers. It also takes you through the installation and configuration process of setting this extension up.

Build System
------------

[](#build-system)

A simple [Makefile](./Makefile) is used for this purpose. It is very easy to use and to get a full list of commands and their descriptions, then run the following command:

```
$ make help
```

Here are some of the more useful use-cases:

```
# Replace version number with latest git tag value
$ make bump
# Replace version with specified value
$ make VERSION=1.0.0 bump
# Package with version being latest git tag value
$ make package
# Package with version being manually specified
$ make VERSION=1.0.0 package
```

Development Environment
-----------------------

[](#development-environment)

We use a super simple development environment that is ephemeral. You can spin it up by doing the following:

```
mkdir -p ./private/varnish
cp conf/varnish/*.vcl ./private/varnish
docker compose up -d
docker compose logs -f
docker compose down # destroy environment
```

You can deploy the module into the development environment by running the following:

```
make clean
make build
make deploy
```

You can then access the magento container by running the following:

```
docker compose exec magento bash
```

Once in the container you can run the standard commands to install the module:

```
magento setup:upgrade
magento setup:di:compile
```

The Magento site is hosted on  and the backend can be reached at . Default user name is `jetrails` and default password is `magento2`.

Legal Disclaimer
----------------

[](#legal-disclaimer)

Varnish is a registered trademark of Varnish Software AB and its affiliates.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance50

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~137 days

Recently: every ~268 days

Total

19

Last Release

399d ago

Major Versions

1.1.11 → 2.0.02021-07-23

2.0.2 → 3.0.02022-02-18

### Community

Maintainers

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

---

Top Contributors

[![null93](https://avatars.githubusercontent.com/u/5500199?v=4)](https://github.com/null93 "null93 (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![Gelmo](https://avatars.githubusercontent.com/u/8406039?v=4)](https://github.com/Gelmo "Gelmo (1 commits)")

---

Tags

magento-2magento-modulevarnish

### Embed Badge

![Health badge](/badges/jetrails-magento2-varnish/health.svg)

```
[![Health](https://phpackages.com/badges/jetrails-magento2-varnish/health.svg)](https://phpackages.com/packages/jetrails-magento2-varnish)
```

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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