Improve Performance

Update to the latest magento-scripts

In magento-scripts version 2.4.0, page load time was reduced significantly. Due to this improvement, Varnish was disabled by default.

Updating to New Releases

Enabling VirtioFS in Docker Desktop on Mac

For the best experience on macOS, it is recommended to enable VirtioFS in the Docker Desktop settings > General > Choose file sharing implementation for your containers.

See the blog post from the Docker team introducing VirtioFS.

maritos/magento2-performance-fixes

Description

To improve first request GraphQL performance we can use Composer package maritos/magento2-performance-fixes. (Source code available here)

In general, this package changes the default cache building process, when the cache is empty, it locks all incoming requests and waits until the first request finishes building cache and then all following requests instead of rebuilding cache just use it right away.

So yeah, up to 30% speed improvements for GraphQL requests on the first load from a thin air.

Installation

Install Composer package

Install Composer package in your project.

Extend composer.json

Add extra field in composer.json

Run composer install

After composer install make sure patches have been applied. Composer install output should be similar to:

That's it! Happy coding!

Last updated

Was this helpful?