|
@@ -98,6 +98,7 @@ class Region extends \common\components\ActiveRecord
|
|
|
* @return array|mixed|\yii\db\ActiveRecord[]
|
|
* @return array|mixed|\yii\db\ActiveRecord[]
|
|
|
*/
|
|
*/
|
|
|
public static function getFromCache(){
|
|
public static function getFromCache(){
|
|
|
|
|
+ Yii::$app->cache->delete(Cache::REGION_CONFIG_KEY);
|
|
|
$data = Yii::$app->cache->get(Cache::REGION_CONFIG_KEY);
|
|
$data = Yii::$app->cache->get(Cache::REGION_CONFIG_KEY);
|
|
|
if(!$data){
|
|
if(!$data){
|
|
|
// 获取信息
|
|
// 获取信息
|