mirror of
https://github.com/friendica/friendica
synced 2024-12-30 13:56:29 +01:00
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