ZF:在application.ini中禁用资源插件 [英] ZF: Disable Resource Plugin in application.ini

查看:109
本文介绍了ZF:在application.ini中禁用资源插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在cli环境中禁用缓存?

How can I disable cache in the cli enviroment?

原因是,不允许执行脚本的系统用户写入缓存目录,因此脚本无法执行.

Reason being, the system user that executes the script is not allowed to write to the cache directory, thus the script is unable to execute.

在我的application.ini中,我有

In my application.ini I have

[production]

resources.cachemanager.database.frontend.name = Core
resources.cachemanager.database.frontend.customFrontendNaming = false
resources.cachemanager.database.frontend.options.lifetime = 7200
resources.cachemanager.database.frontend.options.automatic_serialization = true
resources.cachemanager.database.backend.name = File
resources.cachemanager.database.backend.customBackendNaming = false
resources.cachemanager.database.backend.options.cache_dir = HTTPDOCS_PATH "/data/cache/database"
resources.cachemanager.database.frontendBackendAutoload = false

[cli : production]

*<]:-)

推荐答案

尝试

resources.cachemanager.database.frontend.options.caching = false

请参见 API 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆