Skip to Content
GuidesOptimization

Performance Optimization

Flute CMS has many internal optimization mechanisms, but on some servers additional configuration will be required for even better performance.

IonCube Loader Optimization

Flute CMS uses IonCube Loader to protect module code. IonCube Loader itself doesn’t require additional configuration, but for better performance you should set the ioncube.loader.encoded_paths parameter in php.ini at the very beginning of the file.

ioncube.loader.encoded_paths = "/path_to_site/app/Modules/*"

If you have multiple sites on one server, you can enter multiple paths separated by colon (:). For example:

ioncube.loader.encoded_paths = "/path_to_site1/app/Modules/*:/path_to_site2/app/Modules/*"
⚠️

For changes to take effect, you need to restart PHP, and also insert this parameter at the very beginning of the php.ini file!

Opcache Optimization

In PHP 8+ Opcache is enabled by default. Make sure it’s enabled and configured correctly.

opcache.enable=1 opcache.enable_cli=0

Performance Mode

Sometimes, Flute can work slowly due to a large number of database queries. For such cases, you can use performance mode.

You can enable it in the general settings in the admin panel, or in configs/app.php

Performance mode

'performance' => true,

When performance mode is enabled, Flute will cache various queries for a longer period, which can significantly reduce server load in the long term.