Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在在使用 CakePHP 时遇到了一个奇怪的问题。自从我在 Dreamhost 上启用 XCache 以来,我有一段时间没有使用过 shell,现在当我尝试使用我拥有的 CakePHP Shell 脚本时,我收到了这个错误。致命错误:调用未定义的函数 xcache_isset()
但是,我的网站没有任何错误/问题,除了它看起来的外壳..
任何如何解决这个问题的想法都会很棒!
PHP 作为 isapi 模块和 CLI 有不同的配置文件。您需要指定同一个或修复 CLI 的一个,以便加载 XCache 扩展。
您可以在提供商支持处获得更详细的信息。
对于 Dreamhost,解决方案是 VPS => 配置服务器,然后将 PHP 缓存设置为活动。这将启用 XCache 服务器范围,而不是仅在一个域上。然后 CakePHP 将通过 shell 进行查找。