Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento+;APCu缓存问题。站点运行缓慢,缓存未命中率高于命中率_Magento_Caching_Nginx_Apc_Php - Fatal编程技术网

Magento+;APCu缓存问题。站点运行缓慢,缓存未命中率高于命中率

Magento+;APCu缓存问题。站点运行缓慢,缓存未命中率高于命中率,magento,caching,nginx,apc,php,Magento,Caching,Nginx,Apc,Php,我有一个Magento1.7.0.2安装在LEMP堆栈上运行;Nginx+PHP-FPM(phpv5.5.6 w/apcuv4.0.2)+Percona 我已将magento配置为使用APCu缓存,如下所示: app/etc/local.xml <config> <global> ... <cache> <backend>apc</backend>

我有一个Magento
1.7.0.2
安装在LEMP堆栈上运行;Nginx+PHP-FPM(phpv5.5.6 w/apcuv4.0.2)+Percona

我已将magento配置为使用APCu缓存,如下所示:

app/etc/local.xml

<config>
    <global>
        ...
        <cache>
            <backend>apc</backend>
            <prefix>BDWEB_</prefix>
        </cache>
    </global>
    ...
</config>
这是apc信息页面,显示了巨大的未命中率:


知道什么地方出了问题吗?

APC设置似乎没问题。接下来,您可以执行以下操作:

1) 清除Magento web根文件夹中的var/cache

2) 检查,是否已启用eAccelerator?如果是-禁用它


顺便说一句,APC不是Magento缓存的好工具,因为Magento使用内置的基于Zend的缓存。

我们也遇到了同样的问题。经过几天的改变,这是一个简单的解决方案

在您使用的local.xml文件中

<prefix>BDWEB_</prefix>
BDWEB_
出于某种原因,Magento&APCu只接受前缀中的字母数字字符,因此我们发现删除下划线“389;”解决了我们的问题

<prefix>BDWEB_</prefix>