fix reversed "if"
This commit is contained in:
parent
66bfb9e76f
commit
67174f5762
2 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ class ClearCache
|
||||||
|
|
||||||
// clear old cache
|
// clear old cache
|
||||||
DI::cache()->clear();
|
DI::cache()->clear();
|
||||||
if (!DI::config()->get('system', 'optimize_tables')) {
|
if (DI::config()->get('system', 'optimize_tables')) {
|
||||||
DBA::e("OPTIMIZE TABLE `cache`");
|
DBA::e("OPTIMIZE TABLE `cache`");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,13 +66,13 @@ class ClearCache
|
||||||
|
|
||||||
// Delete the cached OEmbed entries that are older than three month
|
// Delete the cached OEmbed entries that are older than three month
|
||||||
DBA::delete('oembed', ["`created` < NOW() - INTERVAL 3 MONTH"]);
|
DBA::delete('oembed', ["`created` < NOW() - INTERVAL 3 MONTH"]);
|
||||||
if (!DI::config()->get('system', 'optimize_tables')) {
|
if (DI::config()->get('system', 'optimize_tables')) {
|
||||||
DBA::e("OPTIMIZE TABLE `oembed`");
|
DBA::e("OPTIMIZE TABLE `oembed`");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete the cached "parse_url" entries that are older than three month
|
// Delete the cached "parse_url" entries that are older than three month
|
||||||
DBA::delete('parsed_url', ["`created` < NOW() - INTERVAL 3 MONTH"]);
|
DBA::delete('parsed_url', ["`created` < NOW() - INTERVAL 3 MONTH"]);
|
||||||
if (!DI::config()->get('system', 'optimize_tables')) {
|
if (DI::config()->get('system', 'optimize_tables')) {
|
||||||
DBA::e("OPTIMIZE TABLE `parsed_url`");
|
DBA::e("OPTIMIZE TABLE `parsed_url`");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class Cron
|
||||||
|
|
||||||
self::checkdeletedContacts();
|
self::checkdeletedContacts();
|
||||||
|
|
||||||
if (!DI::config()->get('system', 'optimize_tables')) {
|
if (DI::config()->get('system', 'optimize_tables')) {
|
||||||
self::optimizeTables();
|
self::optimizeTables();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue