Doctrine Caching - Upgrade to PHP 5/6

I am currently upgrading my server from PHP 5.4 to PHP 5.6. One of the benefits I use is caching Doctrine results:

$query->useResultCache('cache_key', 300);

I have Symfony configured to use APC for caching:

doctrine:
    orm:
        metadata_cache_driver: apc
        result_cache_driver: apc
        query_cache_driver: apc

In PHP 5.6, APC is removed, so I will install the APCu extension. Does Symfony need to be updated to use APCu, or will the cache drivers apcwork with APCu?

+4
source share
1 answer

The APCu interface is the same as with APC. Therefore, you do not need to configure: https://github.com/krakjoe/apcu

: apc_ apcu_ , , BC, : https://pecl.php.net/package/apcu_bc

+3

All Articles