From d45e9e2473a95d82d26c8955e2b5e68d2a01a251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Wed, 25 Oct 2023 20:08:41 +0400 Subject: [PATCH] Use announce messages even after using redundant cache for output (#987) --- bt/announce.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bt/announce.php b/bt/announce.php index 55a0a4152..48401fabc 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -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'; } - +$output['external ip'] = inet_pton($ip); +$output['warning message'] = 'Statistics were updated'; // Return data to client echo \Arokettu\Bencode\Bencode::encode($output);