예제 #1
0
파일: Like.php 프로젝트: kreativmind/humhub
 /**
  * Before Delete, remove LikeCount (Cache) of target object.
  * Remove activity
  */
 public function beforeDelete()
 {
     Yii::$app->cache->delete('likes_' . $this->object_model . "_" . $this->object_id);
     return parent::beforeDelete();
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function beforeDelete()
 {
     $this->flushCache();
     return parent::beforeDelete();
 }