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
Beispiel #1
0
 protected function onAfterSave()
 {
     // After adding/deleting a Download ID I have to clear the cache, otherwise I won't see the changes
     CacheCleaner::clearCacheGroups(array('com_ars'));
 }