[*] фикс кэширования
This commit is contained in:
1 parent
8d0039e3e1
commit
a70d4818a5
2 files changed
+3
-2
No files matched your search
@@ -3,7 +3,8 @@ require_once __DIR__ . '/inc/bootstrap.php';
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
|
||||
$cacheId = md5('CIoT::getDallasArrData_'.$USER['deviceId']);
|
||||
if(CCache::check($cacheId)) {
|
||||
|
||||
if(CCache::check($cacheId) and CCache::getAge($cacheId) < 60) {
|
||||
$arSensors = CCache::get($cacheId);
|
||||
} else {
|
||||
$arSensors = CIoT::getSensorsArrData($USER['deviceId']);
|
||||
|
||||
Reference in new issue
Block a user