问题描述
启用apc缓存后,有没有人注意到magento中关于购物车的任何怪异行为?
Has anyone ever noticed any weird behaviour with regards to the shopping cart in magento when apc caching is enabled?
我遇到一种情况,当用户添加某些东西时,好像要添加其他项目和/或其他项目.
I have a situation where it looks as though extra items and/or different items are being added when the user adds something.
这非常奇怪,而且随机性很强,但似乎只有在启用apc时才会发生.
Its very strange and aparantly random but only seems to occur when we have apc enabled.
推荐答案
您可能想尝试清除APC的缓存,包括系统缓存和用户缓存.
You may want to try and clear APC's cache, both system cache and user cache.
请注意,CLI的常规APC缓存和基于Web的条目之间存在区别,并且根据我收集的信息,您不能简单地从CLI调用它,它必须来自Web请求,如下所示:
Note that there is a difference between regular APC cache from CLI and Web based entries, and from what I've gathered you can't simply call it from CLI it has to be from a web request like so:
system('wget --spider --quiet http://localhost/apc/clear_apc_cache.php');
clear_apc_cache.php将包含:
clear_apc_cache.php would contain:
apc_clear_cache('user');
更多详细信息: http://php.net/manual/zh/function.apc-clear -cache.php
并注意缓存类型参数:
这篇关于Magento-APC缓存,奇怪的购物篮行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!