Пример #1
0
 function _get_RateConfigResultCache($rateConfigs)
 {
     //每一个小时更新一次
     $filePath = $this->_getReteConfigFilePath($this->_typeId);
     if (!file_exists($filePath) || time() - filemtime($filePath) > 3600) {
         $weekHTML = $this->_buildWeekResultHtml($rateConfigs);
         pwCache::setData(s::escapePath($filePath), $weekHTML);
         //write ignore null or not
     } else {
         //* $weekHTML = readover ( $filePath );
         $weekHTML = pwCache::getData(S::escapePath($filePath), false, true);
     }
     return $weekHTML;
 }