Documentation

read

boolean public
\Bitrix\Main\Data\CacheEngineFiles::read(
 mixed ,
 string $baseDir,
 string $initDir,
 string $filename,
 integer $TTL
);

This non-static method reads or writes cache in file. Returns true when file exists, not expired or successfully read.

Parameters

ParameterDescriptionVersion
$arAllVarsCache result.
$baseDirMain directory for cache (usually /bitrix/cache).
$initDirInitial directory.
$filenameFile name
$TTLExpiration period in seconds.

Examples



© «Bitrix24», 2001-2024
Up