|Wiki locking: $wgReadOnlyFile|
|If this file is found, the database is locked for the reason given in the contents of the file.
|Introduced in version:||pre 1.1.0|
|Removed in version:||still in use|
|Allowed values:||(path to a file)|
(Note: The default value of this variable depends on other variables, such as the values set in $1, after $2 is executed)
|Other settings: Alphabetical | By function|
If this file is found and its contents are more than 0 bytes long, the database is locked for the reason given in the contents of the file.
The file must be writable by the web server for locking the database when using the special pages "Special:LockDB" (locking) and "Special:UnlockDB" (unlocking).
$wgSessionCacheTypesince users cannot log into the wiki to access "Special:UnlockDB" for unlocking the database.