From c8317406a25628eef52169b2f15d7884cb36bf9c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 18 Oct 2009 22:32:40 +0200 Subject: save compressed css/js caches with io_saveFile and check for gzip support Ignore-this: 77e61d0082fe6eb8f43059fb5da67eee darcs-hash:20091018203240-7ad00-4530a8b64af79bc844f50e3c0988e466fb09351c.gz --- lib/exe/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/js.php') diff --git a/lib/exe/js.php b/lib/exe/js.php index f79023c49..42190eac7 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -127,7 +127,7 @@ function js_out(){ // save cache file io_saveFile($cache,$js); - copy($cache,"compress.zlib://$cache.gz"); + if(function_exists('gzopen')) io_saveFile("$cache.gz",$js); // finally send output if ($conf['gzip_output']) { -- cgit v1.2.3