From: Antoine Musso Date: Sat, 19 Nov 2011 16:31:42 +0000 (+0000) Subject: closing a store is only available for CDB type X-Git-Tag: 1.31.0-rc.0~26415 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=4802134f1065c4a92f3e99e65e03509187e6c9aa;p=lhc%2Fweb%2Fwiklou.git closing a store is only available for CDB type follow up r103684 --- diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 828ed1c749..f22aa6c73e 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -358,7 +358,10 @@ class LocalisationCache { $deps = $this->store->get( $code, 'deps' ); $keys = $this->store->get( $code, 'list', 'messages' ); $preload = $this->store->get( $code, 'preload' ); - $this->store->close( $code ); + 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" );