Possibly fixes 5137: Only execute "optimize table" when allowed
This commit is contained in:
parent
e9dbf55400
commit
04fd6eff01
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ Class Cron {
|
|||
dba::delete('workerqueue', ['`done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 1 HOUR']);
|
||||
|
||||
// Optimizing this table only last seconds
|
||||
dba::e("OPTIMIZE TABLE `workerqueue`");
|
||||
if (Config::get('system', 'optimize_workerqueue', false)) {
|
||||
dba::e("OPTIMIZE TABLE `workerqueue`");
|
||||
}
|
||||
|
||||
Config::set('system', 'last_cron_hourly', time());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue