MediaWiki 怎么设置缓存

From 清冽之泉
Revision as of 22:43, 10 November 2024 by Mwroot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

之前的版本,没有特定设置过缓存,MediaWiki 默认有设置。

这次更新的新版,LocalSettings.php 中没有设置缓存目录,把它设置好即可。

首先,# $wgCacheDirectory = "$IP/cache"; 去除前面的 #。

另外,chown -R www-data:www-data cache

之后就不会有 304 not found 的缓存报错了。

好了。