Skip to Content
Flute CMS v1.0.0 — Получить ключ доступа
GuidesOptimization

Performance Optimization

Flute CMS has many built-in mechanisms for optimization, but some servers may require additional configuration for even greater performance.

IonCube Loader Optimization

IonCube Loader is a PHP extension that allows running encrypted (protected) PHP code. Flute CMS uses it to protect module code from unauthorized copying and modification. Without IonCube Loader, protected modules simply won’t run.

IonCube Loader itself does not 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. This tells IonCube where exactly to look for encrypted files, so it won’t waste time checking the rest.

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

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

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

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

Opcache Optimization

Opcache is a built-in PHP mechanism for caching compiled code. Simply put, when a PHP script runs for the first time, it is compiled into machine code. Opcache saves this result in memory so that subsequent requests don’t waste time on recompilation. This significantly speeds up the website.

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

opcache.enable=1 opcache.enable_cli=0

Performance Mode

Sometimes, Flute may run 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 run.