$script->shutdown(1); } } $purge = false; if ($options['purge']) { if (!$options['expiry']) { // If --expiry is not specified, purge everything $purgeExpiry = time(); } $purge = true; } $noAction = true; $cacheList = eZCache::fetchList(); if ($options['list-tags']) { $noAction = false; $tagList = eZCache::fetchTagList($cacheList); if ($script->verboseOutputLevel() > 0) { $cli->output("The following tags are defined:"); $column = 0; foreach ($tagList as $tagName) { $len = strlen($tagName); if ($len > $column) { $column = $len; } } $column += 2; foreach ($tagList as $tagName) { $cacheEntries = eZCache::fetchByTag($tagName, $cacheList); $cli->output($cli->stylize('emphasize', $tagName) . ':', false); $i = 0; foreach ($cacheEntries as $cacheEntry) {