public function clearCache() { if (!Mage::helper('magefm_cdn')->isEnabled()) { return parent::clearCache(); } Mage::throwException('You cannot clear this cache because new images will not be automatically generated.'); }
/** * Clears the images on the CDN and the local cache. * * @return string */ public function clearCache() { parent::clearCache(); $cds = Mage::Helper('imagecdn')->factory(); if ($cds->useCdn()) { $cds->clearCache(); } }
/** * Clear product image cache directory */ public function clearCache() { if (!Mage::helper('uaudio_storage')->isEnabled()) { return parent::clearCache(); } $directory = Mage::getBaseDir('media') . DS . 'catalog' . DS . 'product' . DS . 'cache' . DS; $this->_getStorageModel()->deleteDir($directory); }