ostark / craft-relax
Craft relax! Less database I/O
Installs: 20 000
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 2
Open Issues: 4
Type:craft-plugin
Requires
- php: ^8.0
- craftcms/cms: ^5.0.1
- yiisoft/yii2-queue: ^2.3.3
Requires (Dev)
- craftcms/phpstan: *
- craftcms/rector: dev-main
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.2
This package is auto-updated.
Last update: 2024-12-18 11:33:30 UTC
README
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.