mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Use announce messages even after using redundant cache for output (#987)
This commit is contained in:
parent
c05278bb16
commit
d45e9e2473
1 changed files with 2 additions and 3 deletions
|
@ -424,10 +424,9 @@ if (!$output) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$peers_list_cached = CACHE('tr_cache')->set(PEERS_LIST_PREFIX . $topic_id, $output, PEERS_LIST_EXPIRE);
|
$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
|
// Return data to client
|
||||||
echo \Arokettu\Bencode\Bencode::encode($output);
|
echo \Arokettu\Bencode\Bencode::encode($output);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue