0
我使用zfdebug的最新SVN版本(1.6)与Zend 1.11.4并试图获得zfdebug的缓存插件工作我如何使用zfdebug缓存插件?
,我发现这2个例子:http://code.google.com/p/zfdebug/wiki/Installation 和http://www.jaceju.net/blog/archives/1077,在我
bootstrap.php中代码
# Setup the cache plugin
if ($this->hasPluginResource('cache')) {
$this->bootstrap('cache');
$cache = $this->getPluginResource('cache')->getDbAdapter();
$options['plugins']['Cache']['backend'] = $cache->getBackend();
}
似乎并没有工作,我得到调用未定义的方法Gestionale_Application_Resource_Cache :: getDbAdapter()
我的application.ini有这个
;cache stuff
resources.cache.frontEnd = core
resources.cache.backEnd = file
resources.cache.frontEndOptions.lifetime = 1200 ; in secondi
resources.cache.frontEndOptions.automatic_serialization = true
resources.cache.backEndOptions.lifetime = 3600 ; in secondi
resources.cache.backEndOptions.cache_dir = APPLICATION_PATH "/../cache"
pluginPaths.Gestionale_Application_Resource = APPLICATION_PATH "/../library/Gestionale/Application/Resource"
;;fine cache stuff
谢谢:)
如果它从未进入,我不有一个_initCache()函数,但我使用zend_缓存在我的项目中,无论如何我会给你正确的答案 – max4ever 2011-05-12 09:59:41