From c027b376dde3a87bea9c4965f062ed920eabd47c Mon Sep 17 00:00:00 2001 From: Abhimanyu Gupta Date: Fri, 2 Mar 2012 17:49:16 -0500 Subject: [PATCH] Fix incorrect cache variable name. page_cache_lifetime is invalid variable name because it isn't set or used anywhere. This bug prevents Drupal from enforcing minimum cache_lifetime for pages. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index a969a311d3d..f6f006c19d7 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2714,7 +2714,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);