/** * 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(); }