function del($updateItemPhotos = true) { $this->deletePhotoFiles(); parent::del(); if ($updateItemPhotos && $this->itemId) { Model::factoryInstance("site")->findByPk($this->itemId)->updatePhotos(); } }
public function del() { parent::del(); $cache = Cacher::getInstance(); $cache->clean("tag", array("searchTag")); }