Manual:$wgTmpDirectory

From MediaWiki.org
Jump to: navigation, search
Language: 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]
"{$wgUploadDirectory}/tmp" prior to 1.20
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php, after LocalSettings.php is executed)

Other settings: Alphabetical | By Function


Details[edit | edit source]

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 $wgObjectCaches[CACHE_DBA]['dir']. (removed in 1.23)
  • Importing uploads from XML dumps
  • ...


MediaWiki version: 1.19

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

References[edit | edit source]

  1. git #99fdc6e8