Manual:$wgReadOnlyFile/zh

From Linux Web Expert

Revision as of 00:46, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Maintenance scripts setting</translate>: $wgReadOnlyFile
如果找到此文件,则数据库将由于文件内容中给出的原因而被锁定。
<translate> Introduced in version:</translate>pre 1.1.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(文件路径)
<translate> Default value:</translate>"{$wgUploadDirectory }/lock_yBgMBwiR"
(<translate> Note:</translate> <translate> The default value of this variable depends on other variables, such as the values set in <tvar|1>Setup.php </>, after <tvar|2>LocalSettings.php </> is executed</translate>)

详情

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.

参见