Mar*_*Ber 3 php php-extension yii2 yii2-advanced-app
在高级模板前端的主配置中配置缓存组件时,我收到异常,在我的 php.ini 上启用了扩展 rsults,如何解决此问题?前端/config/main.php:
'cache' => [
'class' => 'yii\caching\ApcCache',
'keyPrefix' => 'myapp', // a unique cache key prefix
],
Run Code Online (Sandbox Code Playgroud)
关于phpinfo()
apcu:
通过更新配置解决,如下:
'cache' => [
'class' => 'yii\caching\ApcCache',
'keyPrefix' => 'myapp', // a unique cache key prefix
'useApcu' => true,
],
Run Code Online (Sandbox Code Playgroud)
php版本是7.0.18,据我所知,这个版本仅使用apcu,而不是像php 5.X那样的apc