Beispiel #1
0
 /**
  * Override the cache saving method
  * If bad WP db details, _loadCache() returns an empty string (instead of false)
  * Use this to not save value
  *
  * @param string $data|false
  * @return $this
  */
 protected function _saveCache($data)
 {
     if (Mage::helper('wordpress/db')->isQueryable()) {
         return parent::_saveCache($data);
     }
     return $this;
 }