我刚刚设计了一个社交网站的管理控制台。我的老板现在要我缓存几个MySQL查询的结果(24小时)。该网站使用Memcached(Wordpress W3总缓存)和XCache。我想知道做这件事的最好方法是什么。 这里是一个这样的查询的例子,我是如何得到的结果(基本上我的用户返回的汇总统计,这意味着我的成绩是相当简单的,例如: //users who registered in last 365 da
当我运行phpsize,收到以下错误: $ cd /usr/local/xcache-2.0.0
$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /
由于APC中存在一个Bug,我不得不使用另一个Cache-Drive。我删除了APC并安装了xcache。 config.php说你的配置看起来不错,可以运行Symfony。 我上要求以下错误: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to use ApcClassLoader as A
我已经成功安装了xcache。并在php.ini中添加xcache配置。并且还重新启动Apache服务器。 我的系统是mac os x 10.7.3。 PHP -v(或节目的phpinfo): PHP 5.3.8 with Suhosin-Patch (cli) (built: Nov 15 2011 15:33:15)
Copyright (c) 1997-2011 The PHP Group
使用Symfony 2.0,我试图使它与XCache一起工作。 XCache已正确安装。 对于offitial Symfony的文档,我们有这个XcacheClassLoader.php应该做到这一点。至于同一文档中,我们得到这样的忠告: /**
* XcacheClassLoader implements a wrapping autoloader cached in Xcache for P