示例#1
0
 /**
  * 得到疾病文章页中的 热门科室,热门部位
  * @author gaoqing
  * @date 2016-04-15
  * @param string $cacheKey 缓存的唯一标识
  * @param array $column 所需的参数
  * @return array 疾病文章页中的 热门科室,热门部位
  */
 public static function getCommonDiseaseDepartment($cacheKey, $param = [], $forceCache = false)
 {
     $cache = \Yii::$app->cache_data_file;
     $cacheFileName = $cacheKey;
     $data = $cache->get($cacheFileName);
     if ($forceCache) {
         $data = false;
     }
     if (!isset($data) || empty($data)) {
         //            $commonDisDep = HotDepPart::getCommonDepPart(8);
         $commonDisDep = HotDepPart::getCommonDepPart();
         if (isset($commonDisDep) && !empty($commonDisDep)) {
             $data = $commonDisDep;
             $cache->set($cacheFileName, $commonDisDep);
         }
     }
     return $data;
 }