PHPackages                             ether/nginx-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. [Caching](/categories/caching)
4. /
5. ether/nginx-cache

ActiveCraft-plugin[Caching](/categories/caching)

ether/nginx-cache
=================

Smart static caching with Nginx

1.0.2(7y ago)2231[5 issues](https://github.com/ethercreative/nginx-cache/issues)MITPHP

Since Apr 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ethercreative/nginx-cache)[ Packagist](https://packagist.org/packages/ether/nginx-cache)[ RSS](/packages/ether-nginx-cache/feed)WikiDiscussions master Synced 3d ago

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

[![Nginx Cache](resources/banner.jpg)](resources/banner.jpg)

Nginx Cache
===========

[](#nginx-cache)

Harness the power of Nginx to statically cache your Craft site.

TTFB below 5ms!

Usage
-----

[](#usage)

### Site Config

[](#site-config)

Update your sites Nginx conf file to include the three includes below (they are located in your site's storage directory):

```
include /path/to/site/storage/nginx/cache.conf;

server {
    # ...

    include /path/to/site/storage/nginx/cache-server.conf;

    # ...

    location ~ \.php$ {
        # ...
        include /path/to/site/storage/nginx/cache-location.conf;
        # ...
    }
}

```

### Reload Command

[](#reload-command)

The reload command will be executed using `exec` after the config is saved. If you find that the command isn't working (Nginx isn't reloading after save) it is likely due to PHP not having permission to run the command. You can give PHP permission by adding the command to your server's `sudoers` file. To edit your `sudoers` file run `$ sudo visudo` on your server, then add the following:

```
www-data ALL=(ALL:ALL) NOPASSWD:nginx -s reload

```

Substitute `nginx -s reload` with whatever your command is.

If you don't have a `sudoers` file you will need to manually reload Nginx after each save of the plugin config.

### Docker

[](#docker)

If you are using Docker ensure that your chosen cache directory and Craft's storage directory (or at least the Nginx directory in storage) are available to both your PHP and Nginx containers.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~0 days

Total

3

Last Release

2593d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30c8191e4ff2ab8c26533caccdb3d82972acfb51bc5dc9650cb1d63b6ec48e82?d=identicon)[ether](/maintainers/ether)

---

Top Contributors

[![Tam](https://avatars.githubusercontent.com/u/977594?v=4)](https://github.com/Tam "Tam (15 commits)")[![jamesedmonston](https://avatars.githubusercontent.com/u/4851924?v=4)](https://github.com/jamesedmonston "jamesedmonston (2 commits)")

### Embed Badge

![Health badge](/badges/ether-nginx-cache/health.svg)

```
[![Health](https://phpackages.com/badges/ether-nginx-cache/health.svg)](https://phpackages.com/packages/ether-nginx-cache)
```

###  Alternatives

[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)[putyourlightson/craft-cloudflare

Purge Cloudflare caches from Craft.

2615.3k](/packages/putyourlightson-craft-cloudflare)[nystudio107/craft-fastcgicachebust

Bust the Nginx FastCGI Cache when entries are saved or created.

1953.5k3](/packages/nystudio107-craft-fastcgicachebust)

PHPackages © 2026

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