Manual:$wgTmpDirectory

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
العربية • ‎English • ‎español • ‎français • ‎日本語 • ‎polski • ‎português do Brasil • ‎中文
Paths: $wgTmpDirectory
The path of the temporary directory.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: absolute path
Default value: system temp dir determined by wfTempDir()[1]
"{$wgUploadDirectoryManual:$wgUploadDirectory}/tmp" prior to 1.20
(Note: The default value of this variable depends on other variables, such as the values set in Setup.phpManual:Setup.php, after LocalSettings.phpManual:LocalSettings.php is executed)
Other settings: Alphabetical | By function

Details[edit]

MediaWiki version: 1.20

The local filesystem path to a temporary directory. This is not required to be accessible from the web. Used by wfTempDir() to control where temporary files MediaWiki needs are to be written, including:

  • Old and new tempfiles for external executable based external diff engines configured by $wgExternalDiffEngine
  • TempFSFile - used for chunked uploading, some transformations, and various parts of the file backend code
  • UID Generator node and lock files.
  • Upload from URL
  • The directory which a CACHE_DBA cache places it's DBA database file. Can be overridden using $wgObjectCachesManual:$wgObjectCaches[CACHE_DBA]['dir']. (removed in 1.23)
  • Importing uploads from XML dumps
  • SvgHandler - used for SVG transformation
  • ...
MediaWiki version: 1.19

The path to the temporary directory. When using CACHE_DBA as your $wgMainCacheTypeManual:$wgMainCacheType, this allows you to select which directory is used.

References[edit]

  1. git #99fdc6e8