Pārlūkot izejas kodu

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

kevin 1 gadu atpakaļ
vecāks
revīzija
c2053a3355
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      common/models/Countries.php

+ 1 - 0
common/models/Countries.php

@@ -63,6 +63,7 @@ class Countries extends \common\components\ActiveRecord
     public static function getFromCache()
     {
         $data = Yii::$app->cache->get(Cache::COUNTRIES_KEY);
+        Yii::$app->cache->delete(Cache::COUNTRIES_KEY);
         if (!$data) {
             // 获取信息
             $data = self::getAllData();