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.

10 November 2024

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