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