Index: trunk/phase3/includes/LocalisationCache.php |
— | — | @@ -358,10 +358,6 @@ |
359 | 359 | $deps = $this->store->get( $code, 'deps' ); |
360 | 360 | $keys = $this->store->get( $code, 'list', 'messages' ); |
361 | 361 | $preload = $this->store->get( $code, 'preload' ); |
362 | | - if( $this->store instanceof LCStore_CDB ) { |
363 | | - // Dont leave open filehandler behind after being called |
364 | | - $this->store->close( $code ); |
365 | | - } |
366 | 362 | // Different keys may expire separately, at least in LCStore_Accel |
367 | 363 | if ( $deps === null || $keys === null || $preload === null ) { |
368 | 364 | wfDebug( __METHOD__."($code): cache missing, need to make one\n" ); |
— | — | @@ -1036,13 +1032,6 @@ |
1037 | 1033 | } |
1038 | 1034 | } |
1039 | 1035 | |
1040 | | - public function close( $code ) { |
1041 | | - if ( !isset( $this->readers[$code] ) ) { |
1042 | | - return; |
1043 | | - } |
1044 | | - $this->readers[$code]->close(); |
1045 | | - } |
1046 | | - |
1047 | 1036 | public function startWrite( $code ) { |
1048 | 1037 | if ( !file_exists( $this->directory ) ) { |
1049 | 1038 | if ( !wfMkdirParents( $this->directory, null, __METHOD__ ) ) { |
— | — | @@ -1197,4 +1186,4 @@ |
1198 | 1187 | $this->unload( $code ); |
1199 | 1188 | } |
1200 | 1189 | } |
1201 | | -} |
| 1190 | +} |
\ No newline at end of file |