Modx和Memcache设置

时间:2015-01-26 07:42:27

标签: memcached modx modx-revolution

我在aws中运行了一个memcache服务器。已安装的memcache扩展名 modx服务器。

然后我更新modx中的设置。

cache_handler - > cache.xPDOMemCache 添加一个新密钥" resource_memcached_server"和value = xxx.com:11211

但我拖尾日志,有一些错误

[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 1.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 8.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 1.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 8.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 1.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 8.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 1.
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache source data
for 8.
[2015-01-23 14:17:13] (ERROR @ /index.php) Error caching lexicon topic
lexicon/en/wayfinder/properties
[2015-01-23 14:17:13] (ERROR @ /index.php) Error caching lexicon topic
lexicon/en/wayfinder/properties
[2015-01-23 14:17:13] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:14] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:16] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:16] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:16] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:17] (ERROR @ /index.php) Could not cache context
settings for web.
[2015-01-23 14:17:18] (ERROR @ /index.php) Could not cache context
settings for web.

我可以知道如何解决它?

P.s Modx版本MODX革命2.2.14-pl(传统)

2 个答案:

答案 0 :(得分:2)

您是否正在运行memcached服务器? 您需要提供MODx的IP:PORT编号。

作为一个非常基本的:

  • 确保php的memcache模块已安装并正常工作,php_info将检查此
  • 设置cache_handler = cache.xPDOMemCache
  • 设置memcached_server = myip:port
  • 在你要使用memcache进行系统设置时,你需要将它们添加到你的config.inc.php

    $ config_options = array(     ' memcached_server' => '服务器:端口&#39 ;,     ' system_settings_memcached_server' => '服务器:端口' );

答案 1 :(得分:0)