/**
  * @return Zend_Cache_Frontend
  */
 public static function get_cache()
 {
     if (!self::$cache) {
         self::$cache = SS_Cache::factory('DynamicTranslations', 'Output', array('automatic_serialization' => true));
     }
     return self::$cache;
 }
 /**
  * After writing a translation, update the item in the cache
  * @todo Should we just wipe the item from the cache instead?
  */
 public function onAfterWrite()
 {
     $key = md5($this->Entity);
     DynamicTranslationAdapter::get_cache()->save($this->String, $key);
     parent::onAfterWrite();
 }