From 51dab939ea9e43effa9571e3d3a732143a82f980 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 10 Aug 2009 13:33:08 +0100 Subject: [PATCH] if hit on disk, reload into memcache --- core/util.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index b14cd686..451f9ed9 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -770,7 +770,11 @@ function _start_cache() { else { header("Content-type: text/html"); header("Last-Modified: $gmdate_mod"); - $data = @gzuncompress(file_get_contents($_cache_filename)); + $zdata = @file_get_contents($_cache_filename); + if(CACHE_MEMCACHE) { + $_cache_memcache->set($_cache_hash, $zdata, 0, 600); + } + $data = @gzuncompress($zdata); if($data) { print $data; exit;