Skip to content
Extraits de code Groupes Projets
Valider 1324cfcf rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixes #7195 Make code more efficient by only updating the numeric archive...

Fixes #7195 Make code more efficient by only updating the numeric archive tables (blob tables don't have `done` flags)
parent f7cfd20d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -174,7 +174,12 @@ class ArchiveInvalidator {
// In each table, invalidate day/week/month/year containing this date
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();
foreach ($archiveTables as $table) {
$archiveNumericTables = array_filter($archiveTables, function($name) {
return ArchiveTableCreator::getTypeFromTableName($name) == ArchiveTableCreator::NUMERIC_TABLE;
});
foreach ($archiveNumericTables as $table) {
// Extract Y_m from table name
$suffix = ArchiveTableCreator::getDateFromTableName($table);
if (!isset($datesByMonth[$suffix])) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter