From 4d03992a67b1cc2edef561c44c3fb129f2ccd841 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 19 Nov 2011 17:00:57 +0000 Subject: [PATCH] revert r103694 r103687 Need to find a better way to fix that cache issue :( --- includes/LocalisationCache.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index f22aa6c73e..ad707dc18a 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -358,10 +358,6 @@ class LocalisationCache { $deps = $this->store->get( $code, 'deps' ); $keys = $this->store->get( $code, 'list', 'messages' ); $preload = $this->store->get( $code, 'preload' ); - if( $this->store instanceof LCStore_CDB ) { - // Dont leave open filehandler behind after being called - $this->store->close( $code ); - } // Different keys may expire separately, at least in LCStore_Accel if ( $deps === null || $keys === null || $preload === null ) { wfDebug( __METHOD__."($code): cache missing, need to make one\n" ); @@ -1036,13 +1032,6 @@ class LCStore_CDB implements LCStore { } } - public function close( $code ) { - if ( !isset( $this->readers[$code] ) ) { - return; - } - $this->readers[$code]->close(); - } - public function startWrite( $code ) { if ( !file_exists( $this->directory ) ) { if ( !wfMkdirParents( $this->directory, null, __METHOD__ ) ) { @@ -1197,4 +1186,4 @@ class LocalisationCache_BulkLoad extends LocalisationCache { $this->unload( $code ); } } -} +} \ No newline at end of file -- 2.20.1