How to configure caching for mediawiki: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 November 2024

  • curprev 17:0717:07, 20 November 2024Mwroot talk contribs 379 bytes +379 Created page with "之前的版本,没有特定设置过缓存,MediaWiki 默认有设置。 这次更新的新版,LocalSettings.php 中没有设置缓存目录,把它设置好即可。 首先,<code># $wgCacheDirectory = "$IP/cache";</code> 去除前面的 #。 另外,<code>chown -R www-data:www-data cache</code>。 之后就不会有 304 not found 的缓存报错了。 好了。"