mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Periodically run an "optimize table" command for cache tables
This commit is contained in:
parent
1424e487a3
commit
d153db44ac
6 changed files with 22 additions and 51 deletions
|
@ -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`");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue