Zend_Cache_Frontend_Page的ini-config

如何在application.ini中配置Zend_Cache_Frontend_Page?我无法定义regexp(参见示例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:语法错误,意外'$'     
已邀请:
不确定你能做到。根据parse_ini_file手册:
Characters ?{}|&~![()^" must not be used anywhere in the key and have a special meaning in the value
。请注意,^在这些字符的集合中。 但是,有趣的是,当你从密钥中删除$时,只留下^ /你不应该得到任何错误。所以似乎问题只在于$。但我不知道如何将它用作ini文件中的密钥。 在这种情况下,我建议在Bootsrap.php中设置正则表达式。您可以在application.ini中定义自定义变量,应该在值中允许使用regexp,并将它们添加到Bootsrap.php中的cachemanager资源中。     

要回复问题请先登录注册