Jump to content

Manual:$wgCacheDirectory

From mediawiki.org
This page is a translated version of the page Manual:$wgCacheDirectory and the translation is 81% complete.
キャッシュ: $wgCacheDirectory
各ウィキごとにつくられる長期間キャッシュ ファイルのローカル ファイルシステム内ディレクトリ
導入されたバージョン:1.16.0 (r52503)
除去されたバージョン:使用中
許容される値:(文字列: ファイルシステム内のパス)
既定値:false

詳細

このディレクトリには指定されたウィキのキャッシュファイルが保存されます。これは、ウィキファームにおいてそれぞれのウィキでそのようなディレクトリを持つべきであること意味します。

そのディレクトリをウェブからアクセスできるようにしてはいけません。 すでにこのディレクトリにある .htaccess ファイルを使うか、または明確にその設定を行ってください(ウェブサーバが .htaccess ファイルを認識しない設定になっている場合など)。 $wgCacheDirectory を false に設定する(または設定しない)場合、ウィキの動作がより遅くなります。

Generally the best value is to set it to a directory writable by the web server but not in the path served by the web server. If you have a wikifarm, they can potentially share a cache directory, but this is only safe if they are using the same version of MediaWiki and have the same extensions enabled. これはインストール時、LocalSettings.php にコメントとして書き込まれますが、コメント化を解除することができます。 そうする場合、MediaWikiのディレクトリの下に cache ディレクトリを作成し、ウェブサーバが書き込めるようにしておくべきです。

このディレクトリを '/tmp' に設定しないでください、さもないと同一サーバにある別のMediaWikiで競合が発生します(ウィキファームや共有サーバの場合)。

This folder should probably be set to chmod -R 775 or 755.

関連項目