Podręcznik:$wgCacheDirectory
| Cache: $wgCacheDirectory | |
|---|---|
| Katalog pamięci podręcznej dla plików tymczasowych o dłuższym terminie, w lokalnym systemie plików. |
|
| Wprowadzono w wersji: | 1.16.0 (r52503) |
| Usunięto w wersji: | nadal w użyciu |
| Dozwolone wartości: | (String: ścieżka w systemie plików) |
| Domyślna wartość: | false |
| Inne ustawienia: Alfabetycznie | Według funkcji | |
Szczegóły
This directory stores some cache files specific for a given wiki, which means wiki farms should have one such directory per wiki.
Nie powinien być dostępny z przeglądarki.
Either you can use the file .htaccess already in this directory, or you should configure it specifically (for example, if your webserver does not recognise .htaccess files).
Jeżeli $wgCacheDirectory będzie ustawione na false (lub nie ustawione), działanie wiki będzie powolne.
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.
This is commented in the file LocalSettings.php created during the installation and can be de-commented.
In this case, you should create the directory cache in your MediaWiki directory and make it writable by the web server.
Note that you should not set this directory to '/tmp' else there could be conflicts with other MediaWiki installations on the same server (wiki farms or shared servers).
Ten katalog powinien mieć ustawienie chmod -R 775 lub 755.