Documentation

clean

void public
\Bitrix\Main\Data\CacheEngineXCache::clean(
 string $baseDir,
 string $initDir = false,
 string $filename = false
);

This non-static method cleans (deletes) cache of directory or file.

Parameters

ParameterDescriptionVersion
$baseDirMain directory for cache files (usually /bitrix/cache).
$initDirDirectory located inside the main one.
$filenameFile name.

Examples



© «Bitrix24», 2001-2024