【发布时间】:2016-07-30 16:51:27
【问题描述】:
尝试在 Cakephp 3 中配置 Cache 时遇到问题。我的配置如下:
Cache => [
'default' => [
'className' => 'Apc',
'path' => CACHE,
],
'_cake_core_' => [
'className' => 'Apc',
'prefix' => 'mandealR_cake_core_',
'path' => CACHE . 'persistent/',
'serialize' => true,
'duration' => '+2 minutes',
],
'_cake_model_' => [
'className' => 'Apc',
'prefix' => 'mandealR_cake_model_',
'path' => CACHE . 'models/',
'serialize' => true,
'duration' => '+2 minutes',
],
'apc' => [
'engine' => 'Apc'
]
]
我可以得到
Cache engine Cake\Cache\Engine\ApcEngine is not properly configured.
谁能帮我找到正确的配置?
【问题讨论】:
-
尽管问题对于了解 Cake 内部结构的人来说可能很明显,但请在收到错误时不仅发布完整、准确的错误消息,还发布相关的完整堆栈跟踪(最好从以正确可读的方式提供的日志)!
标签: php cakephp caching apc cakephp-3.x