mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Update functions.php
This commit is contained in:
parent
f5b05cc177
commit
0e0b41cd84
1 changed files with 4 additions and 1 deletions
|
@ -2222,7 +2222,10 @@ function infoByIP(string $ipAddress, int $port = 0): array
|
|||
}
|
||||
|
||||
if (empty($data)) {
|
||||
$data = ['timestamp' => TIMENOW];
|
||||
$data = [
|
||||
'response' => false,
|
||||
'timestamp' => TIMENOW
|
||||
];
|
||||
}
|
||||
CACHE('bb_ip2countries')->set($cacheName, $data, 1200);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue