We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e0a42e commit e3e9d3eCopy full SHA for e3e9d3e
src/libraries/ServerMetric.php
@@ -13,10 +13,11 @@
13
14
class ServerMetric {
15
16
- const CACHE_UPTIME_TTL = 300;
+ const CACHE_RESPONSE_TIME_TTL = 300;
17
+ const CACHE_UPTIME_TTL = 300;
18
19
public static function getLatestResponseTime($server_id) {
- $cache_key = "bnetdocs-servermetric-lastms-" . (int) $server_id;
20
+ $cache_key = "bnetdocs-servermetric-responsetime-" . (int) $server_id;
21
$cache_val = Common::$cache->get($cache_key);
22
if ($cache_val !== false) return $cache_val;
23
if (!isset(Common::$database)) {
@@ -35,7 +36,7 @@ public static function getLatestResponseTime($server_id) {
35
36
Common::$cache->set(
37
$cache_key,
38
$obj->response_time,
- self::CACHE_UPTIME_TTL
39
+ self::CACHE_RESPONSE_TIME_TTL
40
);
41
return $obj->response_time;
42
}
0 commit comments