/** * @param bool $runValidation * @param null $attributes * @return bool */ public function save($runValidation = true, $attributes = null) { HtmlBBcodeUtils::initZeilenCounter(); list($anzahl_absaetze, $anzahl_zeilen) = HtmlBBcodeUtils::getBBCodeStats(trim($this->text), $this->veranstaltung->getEinstellungen()->zeilenlaenge); $this->cache_anzahl_absaetze = $anzahl_absaetze; $this->cache_anzahl_zeilen = $anzahl_zeilen + 1; // + Überschrift Yii::app()->cache->delete("pdf_" . $this->veranstaltung->id); Yii::app()->cache->delete("pdf_" . $this->veranstaltung->id . "_" . $this->id); return parent::save($runValidation, $attributes); }
/** * @param bool $runValidation * @param null $attributes * @return bool */ public function save($runValidation = true, $attributes = null) { Yii::app()->cache->delete("pdf_ae_" . $this->antrag->veranstaltung->id); return parent::save($runValidation, $attributes); }