From 1be2dcc7015f0ee41f5a275b526881c59aed73b8 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Wed, 28 Jan 2004 10:26:28 +0000 Subject: [PATCH] Missing global caused $wgCompressedPersistentLC=true to be ignored --- includes/LinkCache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/LinkCache.php b/includes/LinkCache.php index 3052aca230..f7b83059de 100644 --- a/includes/LinkCache.php +++ b/includes/LinkCache.php @@ -144,7 +144,7 @@ class LinkCache { function preFill( &$fromtitle ) { - global $wgEnablePersistentLC, $wgCompressedPersistentLC; + global $wgEnablePersistentLC; $fname = "LinkCache::preFill"; wfProfileIn( $fname ); @@ -292,6 +292,7 @@ class LinkCache { } /* private */ function saveToLinkscc( $pid, $dbkeyfrom ){ + global $wgCompressedPersistentLC; if( $wgCompressedPersistentLC and function_exists( "gzcompress" ) ) { $ser = wfStrencode( gzcompress( serialize( $this ), 3 )); } else { -- 2.20.1