diff --git a/includes/common.inc b/includes/common.inc index de895897edd..142155bd131 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2752,7 +2752,7 @@ function page_set_cache() { // This will fail in some cases, see page_get_cache() for the explanation. if ($data = ob_get_contents()) { ob_end_clean(); - $cache_lifetime = variable_get('page_cache_lifetime', 0); + $cache_lifetime = variable_get('cache_lifetime', 0); if (variable_get('page_compression', TRUE) && extension_loaded('zlib')) { $data = gzencode($data, 9, FORCE_GZIP); @@ -2761,7 +2761,7 @@ function page_set_cache() { $cache = (object) array( 'cid' => $base_root . request_uri(), 'data' => $data, - 'expire' => $cache_lifetime > 0 ? $cache_lifetime : CACHE_TEMPORARY, + 'expire' => $cache_lifetime > 0 ? $_SERVER['REQUEST_TIME'] + $cache_lifetime : CACHE_TEMPORARY, 'created' => $_SERVER['REQUEST_TIME'], 'headers' => array(), );