diff --git a/inc/func.php b/inc/func.php index 495152a..307392e 100644 --- a/inc/func.php +++ b/inc/func.php @@ -70,7 +70,6 @@ function pre($arr, $stop = false) { */ function isHaveAccessToDevice($deviceId, $userId){ $cacheId = md5('isHaveAccessToDevice_'.$deviceId.'_'.$userId); - echo $cacheId; if(CCache::checkCache($cacheId)){ $arDevice = CCache::getCache($cacheId); } else { diff --git a/inc/lib/CCache.class.php b/inc/lib/CCache.class.php index 3f62b3c..5434827 100644 --- a/inc/lib/CCache.class.php +++ b/inc/lib/CCache.class.php @@ -190,7 +190,7 @@ class CCache */ public static function ageOfCache(string $name) { - return (time() - filectime(self::$cache_dir . md5($name) . '.tmp')); + return (time() - @filectime(self::$cache_dir . md5($name) . '.tmp')); } }