使用APC和Magento清除特定缓存
我们正在使用带APC缓存的Magento。使用magento的刷新缓存不会清除APC缓存。我们可以使用自己的php脚本清除APC缓存,但一旦清除,就会丢失所有内容。例如,我们希望能够清除/刷新特定的缓存,以便在需要刷新xml缓存时不会丢失所有的整页缓存。有人知道怎么做吗 刷新缓存的当前脚本:使用APC和Magento清除特定缓存,magento,apc,Magento,Apc,我们正在使用带APC缓存的Magento。使用magento的刷新缓存不会清除APC缓存。我们可以使用自己的php脚本清除APC缓存,但一旦清除,就会丢失所有内容。例如,我们希望能够清除/刷新特定的缓存,以便在需要刷新xml缓存时不会丢失所有的整页缓存。有人知道怎么做吗 刷新缓存的当前脚本: <?php apc_clear_cache() . "\n"; apc_clear_cache('user') . "\n"; apc_clear_cache('opcode') . "\n"; ?&
<?php
apc_clear_cache() . "\n";
apc_clear_cache('user') . "\n";
apc_clear_cache('opcode') . "\n";
?>
local.xml
<config>
...
<global>
...
<cache>
<prefix><![CDATA[MAGE_cache_]]></prefix>
<backend><![CDATA[apc]]></backend>
</cache>
<full_page_cache>
<prefix><![CDATA[MAGE_fpc_]]></prefix>
<backend><![CDATA[apc]]></backend>
</full_page_cache>
...
</global>
...
</config>
...
...
...
...