Skip to content
Extraits de code Groupes Projets
Valider e78d5c9b rédigé par Markus's avatar Markus Validation de Matthieu Aubry
Parcourir les fichiers

Ability to customise the piwik/tmp directory path in config/config.ini.php file (#12189)

parent d647d5c9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -135,7 +135,6 @@ enabled = 0
disable_merged_assets = 0
[General]
; the following settings control whether Unique Visitors `nb_uniq_visitors` and Unique users `nb_users` will be processed for different period types.
; year and range periods are disabled by default, to ensure optimal performance for high traffic Piwik instances
; if you set it to 1 and want the Unique Visitors to be re-processed for reports in the past, drop all piwik_archive_* tables
......@@ -573,6 +572,10 @@ enable_custom_logo_check = 1
; absolute path to the chroot environment. eg. '/path/to/piwik/chrooted/'
absolute_chroot_path =
; The path (relative to the Piwik directory) in which Piwik temporary files are stored.
; Defaults to ./tmp (the tmp/ folder inside the Piwik directory)
tmp_path = "/tmp"
; In some rare cases it may be useful to explicitely tell Piwik not to use LOAD DATA INFILE
; This may for example be useful when doing Mysql AWS replication
enable_load_data_infile = 1
......
......@@ -4,6 +4,7 @@ use Interop\Container\ContainerInterface;
use Interop\Container\Exception\NotFoundException;
use Piwik\Cache\Eager;
use Piwik\SettingsServer;
use Piwik\Config;
return array(
......@@ -19,8 +20,10 @@ return array(
} else {
$instanceId = '';
}
return $root . '/tmp' . $instanceId;
$tmp = Config::getInstance()->General['tmp_path'];
return $root . $tmp . $instanceId;
},
'path.cache' => DI\string('{path.tmp}/cache/tracker/'),
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter