i'm using memcache and redis. is it possible to clear only a certain page or group of pages using these? Howso? For example i'd like to be able to only clear the homepage instead of the entire FPC.
Thanks.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIf you know the tags of the pages you can remove only those using
$cache = Mage::app()->getCache();
foreach($cache->getTags() as $tag){
if(strpos($tag, 'my_cache_tag')){
$ids = $cache->getIdsMatchingAnyTags(array($tag));
foreach($ids as $id){
$cache->remove($id);
}
}
}
This can also be used to find out the keys you want to delete inspecting the content of the $cache->getTags()
object. Source here.
Here is a good guide for Magento cache management too.