XCache cannot be cleared on CLI (like APC)
This commit is contained in:
parent
53fbb0b2d1
commit
88a56ee8f8
@ -24,6 +24,7 @@ use Symfony\Component\Console\Input\InputOption;
|
|||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Doctrine\Common\Cache\ApcCache;
|
use Doctrine\Common\Cache\ApcCache;
|
||||||
|
use Doctrine\Common\Cache\XcacheCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command to clear the query cache of the various cache drivers.
|
* Command to clear the query cache of the various cache drivers.
|
||||||
@ -87,6 +88,9 @@ EOT
|
|||||||
if ($cacheDriver instanceof ApcCache) {
|
if ($cacheDriver instanceof ApcCache) {
|
||||||
throw new \LogicException("Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
|
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->write('Clearing ALL Query cache entries' . PHP_EOL);
|
$output->write('Clearing ALL Query cache entries' . PHP_EOL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user