public static function findModel($id, $condition = '')
{
if (!($model = Yii::$app->cache->get('comment' . $id))) {
$model = static::find()->where(['id' => $id])->andWhere($condition)->one();
}
if ($model !== null) {
Yii::$app->cache->set('comment' . $id, $model, 0);
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}