PHPackages                             jaxwilko/wn-opcachepreload-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jaxwilko/wn-opcachepreload-plugin

ActiveWinter-plugin[Utility &amp; Helpers](/categories/utility)

jaxwilko/wn-opcachepreload-plugin
=================================

Winter CMS support for opcache preloading

v0.0.1(4y ago)51.3k2MITPHP

Since Oct 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jaxwilko/wn-opcachepreload-plugin)[ Packagist](https://packagist.org/packages/jaxwilko/wn-opcachepreload-plugin)[ Docs](https://github.com/jaxwilko/wn-opcachepreload-plugin)[ RSS](/packages/jaxwilko-wn-opcachepreload-plugin/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Winter Opcache Preload
======================

[](#winter-opcache-preload)

Preloading allows you to read php files into memory at server startup which helps boost performance. The tradeoff for this is that you will need to restart your webserver when you make a change to one of the cached php files.

[Official preloading php docs](https://www.php.net/manual/en/opcache.preloading.php).

Please note that preloading is not supported on Windows.

### Installation

[](#installation)

Install the plugin:

```
composer require jaxwilko/wn-opcachepreload-plugin
```

Configure opcache settings in your `php.ini`:

```
[opcache]
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.revalidate_freq=0
opcache.preload=/path/to/winter/plugins/jaxwilko/opcachepreload/preload.php
opcache.preload_user=apache
```

> Change `/path/to/winter` to whatever is right for your setup

> Change `apache` in `preload_user` to whatever the right user is for you

### Usage

[](#usage)

Reboot your webserver (nginx / php-fpm / apache).

### Misc

[](#misc)

The preload script supports some options for testing.

```
OPTIONS
-h, --help      show this screen
-d, --dry       perform a dry run
-v, --verbose   output info
-e, --errors    output errors

```

### Disclaimer

[](#disclaimer)

This plugin works well for me in my production setups but that does not necessarily mean it will work for you, please test thoroughly before using in production.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1677d ago

### Community

Maintainers

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

---

Top Contributors

[![jaxwilko](https://avatars.githubusercontent.com/u/31214002?v=4)](https://github.com/jaxwilko "jaxwilko (2 commits)")

---

Tags

cmswinter

### Embed Badge

![Health badge](/badges/jaxwilko-wn-opcachepreload-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/jaxwilko-wn-opcachepreload-plugin/health.svg)](https://phpackages.com/packages/jaxwilko-wn-opcachepreload-plugin)
```

###  Alternatives

[winter/storm

Winter CMS Storm Library

46239.3k6](/packages/winter-storm)[winter/wn-sitemap-plugin

Sitemap plugin for Winter CMS

1042.6k1](/packages/winter-wn-sitemap-plugin)[martin/wn-forms-plugin

Create easy (and almost magic) AJAX forms

212.3k](/packages/martin-wn-forms-plugin)

PHPackages © 2026

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