public function clear()
{
if ($this->isDisabled) {
return false;
}
try {
$driver = $this->getDriver();
if (isset($this->namespace)) {
$normalizedNamespace = strtolower($this->namespace);
$results = $driver->clear(array('cache', $normalizedNamespace)) && $driver->clear(array('sp', $normalizedNamespace));
} else {
$results = $driver->clear();
}
} catch (\Exception $e) {
$this->isDisabled = true;
$this->logException('Flushing Cache Pool caused exception.', $e);
return false;
}
return $results;
}