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