Periodically run an "optimize table" command for cache tables

This commit is contained in:
Michael 2020-08-04 12:24:24 +00:00
parent 1424e487a3
commit d153db44ac
6 changed files with 22 additions and 51 deletions

View file

@ -109,7 +109,7 @@ class Cron
DBA::delete('workerqueue', ['`done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 1 HOUR']);
// Optimizing this table only last seconds
if (DI::config()->get('system', 'optimize_workerqueue', false)) {
if (DI::config()->get('system', 'optimize_tables')) {
DBA::e("OPTIMIZE TABLE `workerqueue`");
}