【问题标题】:Want to replace Memcache with Memcached想用 Memcached 替换 Memcache
【发布时间】:2014-11-22 10:21:52
【问题描述】:

首先我按照 W3 总缓存指令安装了以下内容:

1)已安装 Memcached

2)PECL 内存缓存模块

两天前,我浏览了一篇比较 Memcache 与 Memcached 的文章,我安装了 Memcached

3)sudo apt-get install php5-memcached。和

4) 做了一个 Apache restart。 现在我可以在 phpinfo 中看到两者。

5)我删除了 memcache sudo apt-get remove php5-memcache 因为我想使用 Memcached

6) 卸载后我注意到 Class 'Memcache' not found 错误和 wordpress 无法打开。

7) 然后我又安装了php5-memcache

8) 现在我又可以在 phpinfo 中看到两者了(请看下面的截图)

其他信息

9) 注册的保存处理程序 - 文件用户 memcache memcached

10)session.save_handlermemcache 内存缓存

如何用 memcached 替换 memcache。请指教。

我可以两个都用吗?

PHP 版本:5.5.9-1ubuntu4.4

网络服务器:Apache

【问题讨论】:

    标签: php wordpress caching memcached


    【解决方案1】:

    您使用哪个 Wordpress Memcached? 因为这是你唯一的问题:你需要一个实现Memcached的WP模块

    例如:https://wordpress.org/plugins/wp-ffpc/

    如果你使用另一个,我的建议是卸载 php5-memcache,以避免混淆。

    问候

    【讨论】:

      猜你喜欢
      • 2012-06-28
      • 1970-01-01
      • 1970-01-01
      • 2013-01-10
      • 1970-01-01
      • 2013-10-25
      • 2015-05-01
      • 1970-01-01
      • 2018-07-20
      相关资源
      最近更新 更多