Documentation

CleanDir

CPHPCache::CleanDir(
 $initdir = false,
 $basedir = "cache"
);

The method cleans cache by the basedir parameter. Suitable for resetting memcached data. Non-static method.

Parameters

Parameter Description
initdir Default value - false
basedir Base cache directory. Equals to cache value by default, i. e. all is saved into the /BX_PERSONAL_ROOT/cache/, where BX_PERSONAL_ROOT equals bitrix by default.

Examples of use

$obCache = new CPHPCache(); ... $obCache->CleanDir();


© «Bitrix24», 2001-2024
Up