Use announce messages even after using redundant cache for output (#987)

This commit is contained in:
Cønstantine Kovalensky 2023-10-25 20:08:41 +04:00 committed by GitHub
commit d45e9e2473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -424,10 +424,9 @@ if (!$output) {
}
$peers_list_cached = CACHE('tr_cache')->set(PEERS_LIST_PREFIX . $topic_id, $output, PEERS_LIST_EXPIRE);
}
$output['external ip'] = inet_pton($ip);
$output['warning message'] = 'Statistics were updated';
}
// Return data to client
echo \Arokettu\Bencode\Bencode::encode($output);