1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Fixes DDC-1395

This commit is contained in:
Guilherme Blanco 2011-10-03 01:26:43 -03:00
parent 80284a273d
commit cd28051370

View File

@ -78,13 +78,13 @@ EOT
protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
{
$em = $this->getHelper('em')->getEntityManager();
$cacheDriver = $em->getConfiguration()->getQueryCacheImpl();
$cacheDriver = $em->getConfiguration()->getResultCacheImpl();
if ( ! $cacheDriver) {
throw new \InvalidArgumentException('No Result cache driver is configured on given EntityManager.');
}
$output->write('Clearing ALL Query cache entries' . PHP_EOL);
$output->write('Clearing ALL Result cache entries' . PHP_EOL);
$result = $cacheDriver->deleteAll();
$message = ($result) ? 'Successfully deleted cache entries.' : 'No cache entries were deleted.';