【发布时间】:2011-02-14 21:44:17
【问题描述】:
如何在 application.ini 中配置 Zend_Cache_Frontend_Page?我无法定义正则表达式(参见示例http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.page.examples。它应该类似于以下内容
resources.cachemanager.page.frontend.options.regexps.^/$.cache = true
但这是一个糟糕的ini文件语法,它失败了
Zend_Config_Exception:语法错误,意外的'$'
【问题讨论】:
-
你可以试试
resources.cachemanager.page.frontend.options.regexps['^/$'].cache = true。但根据 Marcin 的回答,我怀疑它会起作用。
标签: zend-framework zend-cache zend-config