| @@ 179-186 (lines=8) @@ | ||
| 176 | $cached = $xml->cachedUntil[0]; |
|
| 177 | $baseUnix = strtotime($cached); |
|
| 178 | $cacheClr = $baseUnix - 13500; |
|
| 179 | if ($cacheClr <= time()) { |
|
| 180 | $weirdTime = time() + 21700; |
|
| 181 | $cacheTimer = gmdate('Y-m-d H:i:s', $weirdTime); |
|
| 182 | setPermCache("siphonLastChecked{$siphonCorp['keyID']}", $weirdTime); |
|
| 183 | } else { |
|
| 184 | $cacheTimer = gmdate('Y-m-d H:i:s', $cacheClr); |
|
| 185 | setPermCache("siphonLastChecked{$siphonCorp['keyID']}", $cacheClr); |
|
| 186 | } |
|
| 187 | $this->logger->addInfo("Siphons: Siphon Check Complete Next Check At {$cacheTimer}"); |
|
| 188 | return null; |
|
| 189 | } |
|
| @@ 965-972 (lines=8) @@ | ||
| 962 | $cached = $xml->cachedUntil[0]; |
|
| 963 | $baseUnix = strtotime($cached); |
|
| 964 | $cacheClr = $baseUnix - 13500; |
|
| 965 | if ($cacheClr <= time()) { |
|
| 966 | $weirdTime = time() + 21700; |
|
| 967 | $cacheTimer = gmdate('Y-m-d H:i:s', $weirdTime); |
|
| 968 | setPermCache("siloLastChecked{$keyID}", $weirdTime); |
|
| 969 | } else { |
|
| 970 | $cacheTimer = gmdate('Y-m-d H:i:s', $cacheClr); |
|
| 971 | setPermCache("siloLastChecked{$keyID}", $cacheClr); |
|
| 972 | } |
|
| 973 | $this->logger->addInfo("siloFull: Silo Check Complete Next Check At {$cacheTimer}"); |
|
| 974 | return null; |
|
| 975 | } |
|