Browse Source

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

kevin 1 year ago
parent
commit
8432dadd56
1 changed files with 1 additions and 0 deletions
  1. 1 0
      common/models/FreeTemplate.php

+ 1 - 0
common/models/FreeTemplate.php

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