{"id":21352562,"url":"https://github.com/ostark/craft-relax","last_synced_at":"2025-07-12T21:30:54.905Z","repository":{"id":39995808,"uuid":"438034389","full_name":"ostark/craft-relax","owner":"ostark","description":"Less database I/O - faster Craft sites","archived":false,"fork":false,"pushed_at":"2024-04-18T09:48:48.000Z","size":90,"stargazers_count":11,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-11T17:50:13.696Z","etag":null,"topics":["craft-plugin","craftcms","performance"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ostark.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-13T21:46:17.000Z","updated_at":"2024-10-01T21:16:01.000Z","dependencies_parsed_at":"2024-01-17T13:29:55.256Z","dependency_job_id":"28a66513-2ef8-4073-86ec-468556adc892","html_url":"https://github.com/ostark/craft-relax","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":0.07692307692307687,"last_synced_commit":"4dd1c066b8b30d2da8fc097c93d0c6716ab531d4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"ostark/craft-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-relax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-relax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-relax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-relax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostark","download_url":"https://codeload.github.com/ostark/craft-relax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225834349,"owners_count":17531471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["craft-plugin","craftcms","performance"],"created_at":"2024-11-22T03:14:07.973Z","updated_at":"2024-11-22T03:14:08.753Z","avatar_url":"https://github.com/ostark.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Craft relax! Less database I/O \n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/ostark/craft-relax.svg?style=flat-square)](https://packagist.org/packages/ostark/craft-relax)\n[![Total Downloads](https://img.shields.io/packagist/dt/ostark/craft-relax.svg?style=flat-square)](https://packagist.org/packages/ostark/craft-relax)\n[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/ostark/craft-relax)\n\nThe plugin tries to reduce write I/O on the database in multiple ways. \n\nIt 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.\n\nIn result the database is more relaxed and can handle more queries faster, which leads to faster sites.\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require ostark/craft-relax\nphp craft plugin/install relax\n```\n\nThe first time plugin is installed, a config file `config/relax.php` is created. All config settings are documented in this file.\n\n\n## Update search index\n\nTo optimize the search index you need to resave elements. Use the build-in resave commands of the `craft` cli \n\n```\nphp craft resave/entries --update-search-index\nphp craft resave/assets --update-search-index\nphp craft resave/matrix-blocks --update-search-index\n```\n\n\n## Testing\n\n```bash\ncomposer test\n```\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Oliver Stark](https://github.com/ostark)\n- [All Contributors](../../contributors)\n\n## License\n\nLicense: MIT\nPlease see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fcraft-relax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostark%2Fcraft-relax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fcraft-relax/lists"}