|
|
@@ -57,6 +57,7 @@ class Currency extends \common\components\ActiveRecord
|
|
|
public static function getFromCache()
|
|
|
{
|
|
|
$data = Yii::$app->cache->get(Cache::CURRENCIES_KEY);
|
|
|
+ Yii::$app->cache->delete(Cache::CURRENCIES_KEY);
|
|
|
if (!$data) {
|
|
|
// 获取信息
|
|
|
$data = static::find()->where('ACTIVE=1')->orderBy('ACTIVE DESC, ID ASC')->asArray()->all();
|