/** * Removes all cache entries matching the specified identifier. * * @param string $entryIdentifier Specifies the cache entry to remove * @return bool TRUE if (at least) an entry could be removed or FALSE if no entry was found */ public function remove($entryIdentifier) { $levels = '1:2'; $levels = explode(':', $levels); $file = ''; $i = 0; foreach ($levels as $level) { $level = (int) $level; $file .= substr($entryIdentifier, -($level + $i), $level) . '/'; $i += $level; } $file .= $entryIdentifier; exec(PATH_site . self::CMD . ' ' . escapeshellarg($file)); return parent::remove($entryIdentifier); }