Server URLs and file paths: $wgFileCacheDirectory | |
---|---|
Directory where the cached pages will be saved when using server-side caching. | |
Introduced in version: | Before 1.1.0 |
Removed in version: | Still in use |
Allowed values: | (absolute path) |
Default value: | "{$wgUploadDirectory}/cache" (Note: The default value of this variable depends on other variables, such as the values set inSetup.php, afterLocalSettings.php is executed) |
Other settings:Alphabetical |By function |
If you switch on server-side file caching$wgUseFileCache =true;
, then you can use this variable to specify where the cached pages will be saved on your server filesystem.
It's an absolute path, so you could specify somewhere under/tmp
for example:
$wgFileCacheDirectory="/tmp/yourcache";
...but you can specify this absolute path in relation to other directory path variables, e.g.:
$wgFileCacheDirectory="{$wgUploadDirectory}/cache";
This specifies a "cache" directory under the image uploads directory (normally called "images"). This is the default setting in fact.