Merge pull request #5138 from annando/optimize-workerqueue

Possibly fixes 5137: Only execute "optimize table" when allowed
This commit is contained in:
rabuzarus 2018-05-27 10:10:11 +02:00 committed by GitHub
commit 32c3762989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,9 @@ Class Cron {
dba::delete('workerqueue', ['`done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 1 HOUR']);
// Optimizing this table only last seconds
if (Config::get('system', 'optimize_workerqueue', false)) {
dba::e("OPTIMIZE TABLE `workerqueue`");
}
Config::set('system', 'last_cron_hourly', time());
}