diff --git a/docs/en/reference/caching.rst b/docs/en/reference/caching.rst index 0839ff614..f2937c780 100644 --- a/docs/en/reference/caching.rst +++ b/docs/en/reference/caching.rst @@ -60,11 +60,11 @@ by itself. .. code-block:: php save('cache_id', 'my_data'); APCu -~~~ +~~~~ In order to use the APCu cache driver you must have it compiled and enabled in your php.ini. You can read about APCu @@ -305,7 +305,7 @@ use on your ORM configuration. setQueryCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Result Cache ~~~~~~~~~~~~ @@ -318,7 +318,7 @@ cache implementation. .. code-block:: php setResultCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setResultCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Now when you're executing DQL queries you can configure them to use the result cache. @@ -335,7 +335,7 @@ result cache driver. .. code-block:: php setResultCacheDriver(new \Doctrine\Common\Cache\ApcCache()); + $query->setResultCacheDriver(new \Doctrine\Common\Cache\ApcuCache()); .. note:: @@ -387,7 +387,7 @@ first. .. code-block:: php setMetadataCacheImpl(new \Doctrine\Common\Cache\ApcCache()); + $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); Now the metadata information will only be parsed once and stored in the cache driver. diff --git a/docs/en/reference/metadata-drivers.rst b/docs/en/reference/metadata-drivers.rst index 6b9cb31e4..5162dee2d 100644 --- a/docs/en/reference/metadata-drivers.rst +++ b/docs/en/reference/metadata-drivers.rst @@ -35,7 +35,7 @@ an entity. .. code-block:: php getConfiguration()->setMetadataCacheImpl(new ApcCache()); + $em->getConfiguration()->setMetadataCacheImpl(new ApcuCache()); If you want to use one of the included core metadata drivers you