english/libraries/joomla/cache/storage/eaccelerator.php
/**
	 * Clean cache for a group given a mode.
	 *
	 * @param   string  $group  The cache data group
	 * @param   string  $mode   The mode for cleaning cache [group|notgroup]
	 *                          group mode    : cleans all cache in the group
	 *                          notgroup mode : cleans all cache not in the group
	 *
	 * @return  boolean  True on success, false otherwise
	 *
	 * @since   11.1
	 */
Clean cache for a group given a mode.
@param   string  $group  The cache data group
@param   string  $mode   The mode for cleaning cache [group|notgroup]
group mode    : cleans all cache in the group
notgroup mode : cleans all cache not in the group

@return  boolean  True on success, false otherwise


Clean cache for a group given a mode . @param string $group The cache data group @param string $mode The mode for cleaning cache [ group|notgroup ] group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group @return boolean True on success false otherwise
public function clean($group, $mode = null)
	{
		$keys = eaccelerator_list_keys();
        $secret = $this->_hash;
        if (is_array($keys)) {
        	foreach ($keys as $key) {
				$key['name'] = ltrim($key['name'], ':');
        		if (strpos($key['name'], $secret.'-cache-'.$group.'-')===0 xor $mode != 'group') {
					eaccelerator_rm($key['name']);
        		}
        	}
        }
		return true;
	}
public function clean ( $ group , $ mode = null ) { $ keys = eaccelerator_list_keys ( ) ; $ secret = $ this -> _hash ; if ( is_array ( $ keys ) ) { foreach ( $ keys as $ key ) { $ key [ 'name' ] = ltrim ( $ key [ 'name' ] , ':' ) ; if ( strpos ( $ key [ 'name' ] , $ secret . '-cache-' . $ group . '-' ) === 0 xor $ mode != 'group' ) { eaccelerator_rm ( $ key [ 'name' ] ) ; } } } return true ; }
Clean cache for a group given a mode.
Clean cache for a group given a mode .
/* Trim leading ":" to work around list_keys namespace bug in eAcc. This will still work when bug is fixed */