uawdijnntqw1x1x1
IP : 216.73.216.30
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
tiskom
/
data
/
www
/
tiskom.xhost.intravision.ru
/
bitrix
/
modules
/
b24connector
/
.
/
lib
/
cache.php
/
/
<?php namespace Bitrix\B24Connector; use Bitrix\Main\Application; /** * Simple wrapper around data cache * @internal * @package Bitrix\B24Connector */ final class Cache { const CACHE_ROOT = '/b24connector'; /** * Returns data from cache if it's valid. Stores data returned by $callback in cache and returns them otherwise. * @param string $cacheId * @param int $ttl * @param callable $callback * @return mixed */ public static function remember(string $cacheId, int $ttl, callable $callback) { $cachePath = self::CACHE_ROOT . '/' . $cacheId; $manager = Application::getInstance()->getCache(); if ($manager->initCache($ttl, $cacheId, $cachePath)) { $cached = $manager->getVars(); return $cached['PROXY']; } else { $result = $callback(); $manager->startDataCache(); $manager->endDataCache(['PROXY' => $result]); return $result; } } }
/var/www/tiskom/data/www/tiskom.xhost.intravision.ru/bitrix/modules/b24connector/./lib/cache.php