Browse Source

feat: NG-15: 新会员注册时增加国家与语言选项.

kevin 1 year ago
parent
commit
e5495c46d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      common/models/Currency.php

+ 1 - 0
common/models/Currency.php

@@ -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();