public function removeFromCache()
 {
     Cache::remove((string) $this->request->key);
     $alert = new AlertControl(null, 'alert');
     $alert->setAltertClass(AlertControl::ALERT_DANGER);
     $alert->setText('Eintrag wurde entfernt');
     $this->ajaxResponse = $alert->toHtml();
     $this->request->view = null;
 }
 /**
  * Änderung an den Modulstammdaten speichern
  */
 public function endEditModule()
 {
     if (!$this->request->present('name')) {
         $create = new CodeCreation();
         $this->current = $create->createModule($this->request->namespace, $this->request);
     } else {
         $this->current = Modules::getModule($this->request->qualifiedName);
     }
     $this->current->description = $this->request->description;
     $this->current->author = $this->request->author;
     $this->current->version = $this->request->version;
     $this->current->save();
     Cache::remove($this->current->getCacheId());
     $this->request->id = $this->current->qualifiedName;
     FlashMessage::success(Strings::GESPEICHERT);
 }