fix: [caching] remove uuid validation from the feed caching

- not really needed and it breaks the entire caching if a single old event has an invalid uuid
pull/9438/head
iglocska 2023-12-05 14:33:56 +01:00
parent 2d20c4136a
commit b66a37844f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 3 deletions

View File

@ -4621,9 +4621,6 @@ class Server extends AppModel
$pipe = $redis->pipeline();
foreach ($data as $entry) {
list($value, $uuid) = explode(',', $entry);
if (!Validation::uuid($uuid)) {
break 2;
}
if (!empty($value)) {
$redis->sAdd('misp:server_cache:' . $serverId, $value);
$redis->sAdd('misp:server_cache:combined', $value);