Skip to content

ostark/craft-relax

Repository files navigation

Craft relax! Less database I/O

Latest Version on Packagist Total Downloads Buy us a tree

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

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

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

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

License: MIT Please see License File for more information.