我正在开发 Zend 应用程序。它缓存菜单项以减少数据库事务。我正在寻找一种将缓存文件的编码设置为 UTF8 的方法。在application.ini
我有:
resources.view.encoding = "UTF-8"
虽然似乎不起作用。
更新:
我找不到_initCache
负责缓存的函数或任何其他代码。缓存仅在以下内容中指定application.ini
:
resources.cache.frontEnd = core
resources.cache.backEnd = file
resources.cache.frontEndOptions.lifetime = 1200
resources.cache.frontEndOptions.automatic_serialization = true
resources.cache.backEndOptions.lifetime = 3600
resources.cache.backEndOptions.cache_dir = APPLICATION_PATH "/../cache"
pluginPaths.CMS_Application_Resource = APPLICATION_PATH "/../library/CMS/Application/Resource"