Cache_Lite::clean()

Cache_Lite::clean() -- Clean the cache

Synopsis

Описание

if no group is specified all cache files will be destroyed ; else only cache files of the specified group will be destroyed

Параметр

string $group

name of the cache group

string $mode

flush cache mode : 'old' (clean too old cache files for the current lifetime), 'ingroup' (clean all cache files for the given group), 'notingroup' (clean all the cache files except for the given group), [since 1.5.0 beta] 'callback_myFunc' (call the function 'myFunc' with the complete path file and the group in parameters, if the callback return 'true', the cache file is deleted).

Возвращаемое значение

returns true if no problem

Заметка

Эта функция не должна вызываться статически.

Пример

This example cleans all of the cache files.

    Поддержать сайт на родительском проекте КГБ