gpt4 book ai didi

php - Yii2 异常 : ApcCache requires PHP apc extension to be loaded

转载 作者:行者123 更新时间:2023-12-02 00:43:12 25 4
gpt4 key购买 nike

我在高级模板前端的主要配置中配置缓存组件时收到异常,在我的 php.ini 上启用了扩展 rsults,我该如何解决这个问题?前端/配置/main.php:

'cache' => [
'class' => 'yii\caching\ApcCache',
'keyPrefix' => 'myapp', // a unique cache key prefix
],

关于apcu的phpinfo():

enter image description here

最佳答案

通过如下更新配置解决:

'cache' => [
'class' => 'yii\caching\ApcCache',
'keyPrefix' => 'myapp', // a unique cache key prefix
'useApcu' => true,
],

php 版本是 7.0.18,据我所知,这个版本只使用 apcu 而不是像 php 5.X 那样的 apc

关于php - Yii2 异常 : ApcCache requires PHP apc extension to be loaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45460796/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com