PHP Класс FOF30\Utils\CacheCleaner

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
clearCacheGroups ( array $clearGroups, array $cacheClients = [0, 1] ) : void Clears the specified cache groups.
clearModulesCache ( ) : void Clears the com_modules cache. You need to call this whenever you alter the publish state or parameters of a module from your code.
clearPluginsAndModulesCache ( ) : void Clears the com_modules and com_plugins cache. You need to call this whenever you alter the publish state or parameters of a module or plugin from your code.
clearPluginsCache ( ) : void Clears the com_plugins cache. You need to call this whenever you alter the publish state or parameters of a plugin from your code.

Описание методов

clearCacheGroups() публичный статический Метод

Clears the specified cache groups.
public static clearCacheGroups ( array $clearGroups, array $cacheClients = [0, 1] ) : void
$clearGroups array Which cache groups to clear. Usually this is com_yourcomponent to clear your component's cache.
$cacheClients array Which cache clients to clear. 0 is the back-end, 1 is the front-end. If you do not specify anything, both cache clients will be cleared.
Результат void

clearModulesCache() публичный статический Метод

Clears the com_modules cache. You need to call this whenever you alter the publish state or parameters of a module from your code.
public static clearModulesCache ( ) : void
Результат void

clearPluginsAndModulesCache() публичный статический Метод

Clears the com_modules and com_plugins cache. You need to call this whenever you alter the publish state or parameters of a module or plugin from your code.
public static clearPluginsAndModulesCache ( ) : void
Результат void

clearPluginsCache() публичный статический Метод

Clears the com_plugins cache. You need to call this whenever you alter the publish state or parameters of a plugin from your code.
public static clearPluginsCache ( ) : void
Результат void