ApcCache -> Call to undefined function yii\caching\apc_fetch()

HI,

I just updated to Yii 2.0.3. for the RBAC caching. I used the given code below to enable caching. However, when I enable the caching lines down below I get an error:

PHP Fatal Error – yii\base\ErrorException

Call to undefined function yii\caching\apc_fetch()


        'cache' => [

            'class' => 'yii\caching\ApcCache',

        ]

Is this a bug or am I doing something wrong? As soon as I comment the above lines in my config, the app works fine again.

Seems the problem is MAMP and PHP 5.6.2 in combination with ApcCache.

Hi, have you loaded APC library and enabled it in php.ini ? checkout APC in php net . you can use


php5enmod apcu