Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Zend framework Zend_缓存_前端_页面的ini配置_Zend Framework_Zend Cache_Zend Config - Fatal编程技术网

Zend framework Zend_缓存_前端_页面的ini配置

Zend framework Zend_缓存_前端_页面的ini配置,zend-framework,zend-cache,zend-config,Zend Framework,Zend Cache,Zend Config,如何在application.ini中配置Zend_缓存_前端_页面?我无法定义regexp(参见示例)。它应该类似于以下内容 resources.cachemanager.page.frontend.options.regexps.^/$.cache = true 但这是一个糟糕的ini文件语法,它失败了 Zend_配置_异常:语法错误,意外的“$” 不确定您是否可以执行此操作。根据手册:字符?{}|&~![()^“不能在键中的任何位置使用,并且在值中具有特殊含义。。请注意,^位于这些字符集

如何在application.ini中配置Zend_缓存_前端_页面?我无法定义regexp(参见示例)。它应该类似于以下内容

resources.cachemanager.page.frontend.options.regexps.^/$.cache = true
但这是一个糟糕的ini文件语法,它失败了

Zend_配置_异常:语法错误,意外的“$”


不确定您是否可以执行此操作。根据手册:
字符?{}|&~![()^“不能在键中的任何位置使用,并且在值中具有特殊含义。
。请注意,^位于这些字符集中

然而,有趣的是,当您从密钥中删除$并只保留^/时,您不应该得到任何错误。因此,问题似乎只存在于$中。但我不知道如何将其用作ini文件中的密钥


在这种情况下,我建议在Bootsrap.php中设置regexp。您可以在application.ini中定义自定义变量,值中应允许使用regexp,并将它们添加到Bootsrap.php中的cachemanager资源中。

您可以尝试
resources.cachemanager.page.frontend.options.regexps['^/$'].cache=true
。但根据Marcin的回答,我怀疑它是否有效。