Index: trunk/phase3/includes/LocalisationCache.php |
— | — | @@ -358,6 +358,7 @@ |
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 | 363 | // Different keys may expire separately, at least in LCStore_Accel |
363 | 364 | if ( $deps === null || $keys === null || $preload === null ) { |
364 | 365 | wfDebug( __METHOD__."($code): cache missing, need to make one\n" ); |
— | — | @@ -1032,6 +1033,13 @@ |
1033 | 1034 | } |
1034 | 1035 | } |
1035 | 1036 | |
| 1037 | + public function close( $code ) { |
| 1038 | + if ( !isset( $this->readers[$code] ) ) { |
| 1039 | + return; |
| 1040 | + } |
| 1041 | + $this->readers[$code]->close(); |
| 1042 | + } |
| 1043 | + |
1036 | 1044 | public function startWrite( $code ) { |
1037 | 1045 | if ( !file_exists( $this->directory ) ) { |
1038 | 1046 | if ( !wfMkdirParents( $this->directory, null, __METHOD__ ) ) { |
— | — | @@ -1186,4 +1194,4 @@ |
1187 | 1195 | $this->unload( $code ); |
1188 | 1196 | } |
1189 | 1197 | } |
1190 | | -} |
\ No newline at end of file |
| 1198 | +} |