$deps = $this->store->get( $code, 'deps' );
$keys = $this->store->get( $code, 'list', 'messages' );
$preload = $this->store->get( $code, 'preload' );
+ $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" );
}
}
+ 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__ ) ) {
$this->unload( $code );
}
}
-}
\ No newline at end of file
+}