Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #88 from luciano-jr/solveapc
Browse files Browse the repository at this point in the history
added verification if apc is enabled
  • Loading branch information
eminetto committed Nov 26, 2014
2 parents abbe479 + cd02fd9 commit b80d524
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
);
$config->setMetadataDriverImpl($driverImpl);

$cache = new \Doctrine\Common\Cache\ApcCache();
if(extension_loaded('apc') && ini_get('apc.enabled'))
{
$cache = new \Doctrine\Common\Cache\ApcCache();

$config->setMetadataCacheImpl($cache);
$config->setMetadataCacheImpl($cache);
}

$connectionOptions = $configValues['db.options'];

Expand Down

0 comments on commit b80d524

Please sign in to comment.