Index: trunk/phase3/includes/LocalisationCache.php |
— | — | @@ -358,7 +358,10 @@ |
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 | | - $this->store->close( $code ); |
| 362 | + if( $this->store instanceof LCStore_CDB ) { |
| 363 | + // Dont leave open filehandler behind after being called |
| 364 | + $this->store->close( $code ); |
| 365 | + } |
363 | 366 | // Different keys may expire separately, at least in LCStore_Accel |
364 | 367 | if ( $deps === null || $keys === null || $preload === null ) { |
365 | 368 | wfDebug( __METHOD__."($code): cache missing, need to make one\n" ); |