1
0
mirror of synced 2025-01-19 06:51:40 +03:00

XCache cannot be cleared on CLI (like APC)

This commit is contained in:
Stefan A 2013-12-10 19:51:41 +01:00
parent 88a56ee8f8
commit eded05d415

View File

@ -24,6 +24,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Doctrine\Common\Cache\ApcCache;
use Doctrine\Common\Cache\XcacheCache;
/**
* Command to clear the metadata cache of the various cache drivers.
@ -88,6 +89,11 @@ EOT
throw new \LogicException("Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
}
if ($cacheDriver instanceof XcacheCache) {
throw new \LogicException("Cannot clear XCache Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
}
$output->writeln('Clearing ALL Metadata cache entries');
$result = $cacheDriver->deleteAll();