PHPackages                             ostark/craft-relax - 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. ostark/craft-relax

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

ostark/craft-relax
==================

Craft relax! Less database I/O

2.1.0(2y ago)1126.7k↑85%2[3 issues](https://github.com/ostark/craft-relax/issues)[1 PRs](https://github.com/ostark/craft-relax/pulls)MITPHPPHP ^8.0

Since Jan 14Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ostark/craft-relax)[ Packagist](https://packagist.org/packages/ostark/craft-relax)[ Docs](https://github.com/ostark/craft-relax)[ RSS](/packages/ostark-craft-relax/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (6)Versions (14)Used By (0)

Craft relax! Less database I/O
==============================

[](#craft-relax-less-database-io)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2cd6e7e699b1c9a124e58c3e6a1a9f3f1e33cc69eef08e423730db3a5d5aeeca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f737461726b2f63726166742d72656c61782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ostark/craft-relax)[![Total Downloads](https://camo.githubusercontent.com/f36e24304a0d19355189d22e9e00faf0ad235646bcee65351d8bfc563d420218/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f737461726b2f63726166742d72656c61782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ostark/craft-relax)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/ostark/craft-relax)

The plugin tries to reduce write I/O on the database in multiple ways.

It prevents servers from being overwhelmed by too many queue messages, the search index becomes leaner by skipping useless terms, and deprecation notices are written in dev environments only.

In result the database is more relaxed and can handle more queries faster, which leads to faster sites.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ostark/craft-relax
php craft plugin/install relax
```

The first time plugin is installed, a config file `config/relax.php` is created. All config settings are documented in this file.

Update search index
-------------------

[](#update-search-index)

To optimize the search index you need to resave elements. Use the build-in resave commands of the `craft` cli

```
php craft resave/entries --update-search-index
php craft resave/assets --update-search-index
php craft resave/matrix-blocks --update-search-index

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Oliver Stark](https://github.com/ostark)
- [All Contributors](../../contributors)

License
-------

[](#license)

License: MIT Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~117 days

Recently: every ~205 days

Total

8

Last Release

807d ago

Major Versions

1.0.1 → 2.0.02022-05-19

PHP version history (3 changes)1.0.0-betaPHP ^7.4 | ^8.0

2.0.0PHP ^7.4||^8.0

2.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f2939b15a562ee53b5284f58b704e53ae26b975c1154fa6afb2f8b8331fbd27?d=identicon)[ostark](/maintainers/ostark)

---

Top Contributors

[![ostark](https://avatars.githubusercontent.com/u/1941743?v=4)](https://github.com/ostark "ostark (7 commits)")

---

Tags

craft-plugincraftcmsperformancecraftcmscraft-plugincraft-relax

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ostark-craft-relax/health.svg)

```
[![Health](https://phpackages.com/badges/ostark-craft-relax/health.svg)](https://phpackages.com/packages/ostark-craft-relax)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[mmikkel/cache-flag

Cold template caches that can be flagged and automatically invalidated.

1730.4k1](/packages/mmikkel-cache-flag)

PHPackages © 2026

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