Another way to clear database cache

This commit is contained in:
slawkens
2024-01-27 19:27:25 +01:00
parent 3a58c8a6f9
commit 87df817eae
3 changed files with 25 additions and 7 deletions

View File

@@ -1213,7 +1213,6 @@ function clearCache()
'towns', 'groups', 'vocations',
'visitors', 'views_counter', 'failed_logins',
'template_menus',
'database_tables', 'database_columns', 'database_checksum',
'last_kills',
'hooks', 'plugins_hooks', 'plugins_routes', 'plugins_settings', 'plugins_themes', 'plugins_commands',
'settings',
@@ -1242,6 +1241,9 @@ function clearCache()
$cache->delete($item);
}
}
global $db;
$db->setClearCacheAfter(true);
}
deleteDirectory(CACHE . 'signatures', ['index.html'], true);