Код: Выделить всё
(new Query())->cache(7200)->all();
// and
User::find()->cache(7200)->all();
Код: Выделить всё
Yii::$app->cache->flush()
Код: Выделить всё
(new Query())->cache(7200)->all();
// and
User::find()->cache(7200)->all();
Код: Выделить всё
Yii::$app->cache->flush()