Table of Contents

cleanCache

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Cache Class JCache Method cleanCache Reference cleanCache() Never Work in Progress

Cleans the cache.

Syntax

void cleanCache ( $group, $mode )

$group mixed is a string containing the cache group. This parameter is optional and if omitted defaults to false.
$mode mixed is a string containing the mode to use. This paramter is optional and if omitted defaults to ‘ingroup’.

Examples

Example

global $mainframe;

$cache =& JFactory::getCache();
$cache->cleanCache();