Beispiel #1
0
 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.');
 }
Beispiel #2
0
 /**
  * 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();
     }
 }
Beispiel #3
0
 /**
  * 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);
 }