手册:$wgReadOnlyFile
Appearance
维护脚本设置: $wgReadOnlyFile | |
---|---|
如果找到此文件,则数据库将由于文件内容中给出的原因而被锁定。 |
|
引进版本: | 1.1.0前 |
移除版本: | 仍在使用 |
允许的值: | (文件路径) |
默认值: | "{$wgUploadDirectory }/lock_yBgMBwiR" (注: 此变量的默认值取决于其他变量,例如执行LocalSettings.php 后在Setup.php 中设置的值) |
其他设置: 按首字母排序 | 按功能排序 |
详情
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).
This feature cannot be used if the wiki uses
CACHE_DB
for $wgSessionCacheType
since users cannot log into the wiki to access "Special:UnlockDB" for unlocking the database.