Manual:$wgFileCacheDirectory

From mediawiki.org
This page is a translated version of the page Manual:$wgFileCacheDirectory and the translation is 73% complete.
サーバー URL とファイル パス: $wgFileCacheDirectory
サーバーサイドのキャッシュを使用するときにキャッシュされたページが保存されるディレクトリ。
導入されたバージョン:pre 1.1.0
除去されたバージョン:使用中
許容される値:(絶対パス)
既定値:"{$wgUploadDirectory }/cache"
(注: この変数の既定値は、他の変数に依存します。例えば、LocalSettings.php の実行後に Setup.php 内で値が設定される変数です)

詳細

サーバー側のファイルキャッシュ$wgUseFileCache = true;をオンにすると、この変数を使用して、キャッシュされたページをサーバーファイルシステム上のどこに保存するかを指定できます。

これは絶対パスなので、例えば/tmpの下のどこかで指定することができます:

$wgFileCacheDirectory = "/tmp/yourcache";

しかし、他のディレクトリパス変数との関連でこの絶対パスを指定することができます。例えば

$wgFileCacheDirectory = "{$wgUploadDirectory}/cache";

This specifies a "cache" directory under the image uploads directory (normally called "images"). This is the default setting in fact.

The directory will be created automatically if it does not exist. If the server is unable to create the directory, this needs to be done manually. The PHP user must have write access to the cache directory.
共有元から複数のWikiをホストする場合は、同じ名前(メインページなど)のページが誤って配信されないように、それぞれに独自のキャッシュディレクトリがあることを確認する必要があります。

関連項目