|
|
@ -564,6 +564,7 @@ Class Common { |
|
|
|
$cache_filename = "{$cacheDir}{$key}.json"; |
|
|
|
$cache_filename = "{$cacheDir}{$key}.json"; |
|
|
|
|
|
|
|
|
|
|
|
if (file_exists($cache_filename)) { |
|
|
|
if (file_exists($cache_filename)) { |
|
|
|
|
|
|
|
try { |
|
|
|
$jsonData = file_get_contents($cache_filename); |
|
|
|
$jsonData = file_get_contents($cache_filename); |
|
|
|
$data = json_decode($jsonData, true); |
|
|
|
$data = json_decode($jsonData, true); |
|
|
|
|
|
|
|
|
|
|
@ -574,6 +575,9 @@ Class Common { |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}catch(Exception $e) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|