revert r103694 r103687
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 19 Nov 2011 17:00:57 +0000 (17:00 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 19 Nov 2011 17:00:57 +0000 (17:00 +0000)
Need to find a better way to fix that cache issue :(

includes/LocalisationCache.php

index f22aa6c..ad707dc 100644 (file)
@@ -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