mirror of https://github.com/MISP/MISP
chg: [internal] Update warninglist cache just when it is necessary
parent
a33c14f9a8
commit
1902bac7ff
|
@ -300,7 +300,10 @@ class Warninglist extends AppModel
|
|||
}
|
||||
}
|
||||
}
|
||||
$this->regenerateWarninglistCaches();
|
||||
|
||||
if (!empty($result['success']) || !empty($result['fails'])) {
|
||||
$this->regenerateWarninglistCaches();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue