[*] переименованы методы класса CCache

This commit is contained in:
rsgrinko committed 2021-12-10 23:13:00 +03:00
1 parent 5625b8cfd2
commit eb18e5e6c9
7 files changed
+37 -37

No files matched your search

+6 -6
View File
@@ -12,19 +12,19 @@
require_once __DIR__ . '/inc/header.php';
$cacheId = md5('CIoT::getDevice_'.$deviceId);
if(CCache::checkCache($cacheId)) {
$arDevice = CCache::getCache($cacheId);
if(CCache::check($cacheId)) {
$arDevice = CCache::get($cacheId);
} else {
$arDevice = CIoT::getDevice($deviceId);
CCache::writeCache($cacheId, $arDevice);
CCache::write($cacheId, $arDevice);
}
$cacheId = md5('CUser::getFields_'.$arDevice['user']);
if(CCache::checkCache($cacheId)) {
$arDeviceUser = CCache::getCache($cacheId);
if(CCache::check($cacheId)) {
$arDeviceUser = CCache::get($cacheId);
} else {
$arDeviceUser = CUser::getFields($arDevice['user']);
CCache::writeCache($cacheId, $arDeviceUser);
CCache::write($cacheId, $arDeviceUser);
}
?>