chg: [internal] Update warninglist cache just when it is necessary

pull/8737/head
Jakub Onderka 2022-11-03 12:27:00 +01:00
parent a33c14f9a8
commit 1902bac7ff
1 changed files with 4 additions and 1 deletions

View File

@ -300,7 +300,10 @@ class Warninglist extends AppModel
}
}
}
$this->regenerateWarninglistCaches();
if (!empty($result['success']) || !empty($result['fails'])) {
$this->regenerateWarninglistCaches();
}
return $result;
}