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
使用APC和Magento清除特定缓存_Magento_Apc - Fatal编程技术网

使用APC和Magento清除特定缓存

使用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"; ?&

我们正在使用带APC缓存的Magento。使用magento的刷新缓存不会清除APC缓存。我们可以使用自己的php脚本清除APC缓存,但一旦清除,就会丢失所有内容。例如,我们希望能够清除/刷新特定的缓存,以便在需要刷新xml缓存时不会丢失所有的整页缓存。有人知道怎么做吗

刷新缓存的当前脚本:

<?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>

...
...
...
...