PHP Class FOF30\Utils\CacheCleaner

显示文件 Open project: akeeba/fof Class Usage Examples

Public Methods

Method Description
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.

Method Details

clearCacheGroups() public static method

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.
return void

clearModulesCache() public static method

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
return void

clearPluginsAndModulesCache() public static method

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
return void

clearPluginsCache() public static method

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
return void