dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Make DBAccessBase use DBConnRef, rename $wiki, and hide getLoadBalancer()"
[lhc/web/wiklou.git]
/
includes
/
cache
/
localisation
/
LCStoreStaticArray.php
diff --git
a/includes/cache/localisation/LCStoreStaticArray.php
b/includes/cache/localisation/LCStoreStaticArray.php
index
d3504a8
..
53893bd
100644
(file)
--- a/
includes/cache/localisation/LCStoreStaticArray.php
+++ b/
includes/cache/localisation/LCStoreStaticArray.php
@@
-39,9
+39,7
@@
class LCStoreStaticArray implements LCStore {
private $directory;
public function __construct( $conf = [] ) {
private $directory;
public function __construct( $conf = [] ) {
- global $wgCacheDirectory;
-
- $this->directory = $conf['directory'] ?? $wgCacheDirectory;
+ $this->directory = $conf['directory'];
}
public function startWrite( $code ) {
}
public function startWrite( $code ) {
@@
-123,6
+121,8
@@
class LCStoreStaticArray implements LCStore {
'Generated by LCStoreStaticArray.php -- do not edit!'
);
file_put_contents( $this->fname, $out );
'Generated by LCStoreStaticArray.php -- do not edit!'
);
file_put_contents( $this->fname, $out );
+ // Release the data to manage the memory in rebuildLocalisationCache
+ unset( $this->data[$this->currentLang] );
$this->currentLang = null;
$this->fname = null;
}
$this->currentLang = null;
$this->fname = null;
}