无法将元数据保存到metadataCache [英] Failed saving metadata to metadataCache

查看:185
本文介绍了无法将元数据保存到metadataCache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了解决这个问题,我做了很多事情,无法解决.

I did a lot digging around for a solution to this problem and was unable to come to a solution.

问题: 我有一个在终端上并通过Web界面运行的Zend Framework 1.10.7应用程序.当它在网络上运行时,它可以正常工作,但是当我通过命令行运行它时,它总是给我一个错误

Problem: I have a Zend Framework 1.10.7 application running on the terminal and through a web interface. When it is running over the web it works flawlessly but when I run it through command line it keeps giving me an error

注意:无法将元数据保存到metadataCache

Notice: Failed saving metadata to metadataCache

我查看了其他各种主题,包括访问Zend应用程序Bootstrap之后的Bootstrap _init函数,但我仍然无法解决该问题,因为我真的无法跟踪那里发生的事情.似乎是同样的问题,但是我不知道该怎么办.

I looked at various other topics including Accessing the Zend Application Bootstrap _init Functions After Bootstrapping and I was still unable to solve the problem because I really couldn't follow what was going on there. It seems to be the same problem but I just couldn't understand what to do.

有人可以帮我这个忙吗?

Could someone please help me out with this?

这是我所拥有的基本知识:

Here is the basic of what I have:

引导程序

protected function _initRouter()
{
    if (PHP_SAPI == 'cli') {
        $this->bootstrap('frontcontroller');
        $front = $this->getResource('frontcontroller');
        $front->setRouter(new PP_Tasks_Init());
        //$front->setRequest(new Zend_Controller_Request_Simple());
    }
}

推荐答案

在您的php.ini文件中,请同时为cli模式启用APC,

In you php.ini file please enable APC for cli mode as well,

不太确定该变量,但如下所示

Not very sure about the variable but it would be like as below

apc-cli-enable = 1

apc-cli-enable = 1

也不要忘记重启Apache来查看更改

Also don't forget to restart the Apache to see changes

这篇关于无法将元数据保存到metadataCache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆