use Cdb\Writer;
/**
- * LCStore implementation which stores data as a collection of CDB files in the
- * directory given by $wgCacheDirectory. If $wgCacheDirectory is not set, this
- * will throw an exception.
+ * LCStore implementation which stores data as a collection of CDB files.
*
* Profiling indicates that on Linux, this implementation outperforms MySQL if
* the directory is on a local filesystem and there is ample kernel cache
/** @var string Current language code */
private $currentLang;
- /** @var bool|string Cache directory. False if not set */
+ /** @var string Cache directory */
private $directory;
function __construct( $conf = [] ) {
- global $wgCacheDirectory;
-
- $this->directory = $conf['directory'] ?? $wgCacheDirectory;
+ $this->directory = $conf['directory'];
}
public function get( $code, $key ) {