diff --git a/classes/optimizer/Optimizer.class.php b/classes/optimizer/Optimizer.class.php index 5c8ffe41d..322f0badc 100644 --- a/classes/optimizer/Optimizer.class.php +++ b/classes/optimizer/Optimizer.class.php @@ -72,6 +72,9 @@ * @brief 이미 저장된 캐시 파일과의 시간등을 검사하여 새로 캐싱해야 할지를 체크 **/ function doOptimizedFile($filename, $targets, $type) { + // optimizer 변경이 된 것에 대해서 모든 제로보드XE에 적용하기 위해 변경 시점으로 캐시 유무를 재확인 + if(time() > 1199414354) return $this->makeOptimizedFile($filename, $targets, $type); + if(!file_exists($filename)) return $this->makeOptimizedFile($filename, $targets, $type); $mtime = filemtime($filename); @@ -102,7 +105,6 @@ if($type!="css" && Context::isGzEnabled()) $content_buff = ob_gzhandler($content_buff, 5); - $content_file = eregi_replace("\.php$","",$filename); $content_filename = str_replace($this->cache_path, '', $content_file); @@ -111,28 +113,45 @@ /** * 압축을 지원하고 캐시 타임을 제대로 이용하기 위한 헤더 파일 구함 **/ - // php의 헤더파일 생성 - // gzip 압축 체크 - if($type!="css" && Context::isGzEnabled()) $gzip_header = 'header("Content-Encoding: gzip");'; - // 확장자별 content-type 체크 if($type == 'css') $content_type = 'text/css'; elseif($type == 'js') $content_type = 'text/javascript'; - $header_buff = << -EndOfBuff; - +?>'; FileHandler::writeFile($filename, $header_buff); }