public static function clearTagsOnShutdown()
{
// do not disable clearing, it's better purging items here than having inconsistent data because of wrong usage
/*if (!self::$enabled) {
Logger::debug("Cache is not cleared because it is disabled");
return;
}*/
if (!empty(self::$_clearTagsOnShutdown)) {
$tags = array_unique(self::$_clearTagsOnShutdown);
if ($cache = self::getInstance()) {
$cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, $tags);
}
}
}