Skip to content
Extraits de code Groupes Projets
Valider ab2b30dc rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixes #6859 use correct config setting

parent 71911457
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -136,13 +136,13 @@ class ArchiveInvalidator { ...@@ -136,13 +136,13 @@ class ArchiveInvalidator {
{ {
// If using the feature "Delete logs older than N days"... // If using the feature "Delete logs older than N days"...
$purgeDataSettings = PrivacyManager::getPurgeDataSettings(); $purgeDataSettings = PrivacyManager::getPurgeDataSettings();
$logsAreDeletedBeforeThisDate = $purgeDataSettings['delete_logs_schedule_lowest_interval']; $logsDeletedWhenOlderThanDays = $purgeDataSettings['delete_logs_older_than'];
$logsDeleteEnabled = $purgeDataSettings['delete_logs_enable']; $logsDeleteEnabled = $purgeDataSettings['delete_logs_enable'];
if ($logsDeleteEnabled if ($logsDeleteEnabled
&& $logsAreDeletedBeforeThisDate && $logsDeletedWhenOlderThanDays
) { ) {
$this->minimumDateWithLogs = Date::factory('today')->subDay($logsAreDeletedBeforeThisDate); $this->minimumDateWithLogs = Date::factory('today')->subDay($logsDeletedWhenOlderThanDays);
} }
} }
......
...@@ -47,7 +47,7 @@ class API extends \Piwik\Plugin\API ...@@ -47,7 +47,7 @@ class API extends \Piwik\Plugin\API
* *
* @param string $idSites Comma separated list of idSite that have had data imported for the specified dates * @param string $idSites Comma separated list of idSite that have had data imported for the specified dates
* @param string $dates Comma separated list of dates to invalidate for all these websites * @param string $dates Comma separated list of dates to invalidate for all these websites
* @param string $period If specified (one of day, week, month, year, range) it will only delete archives for this period. * @param string $period If specified (one of day, week, month, year, range) it will only invalidates archives for this period.
* Note: because week, month, year, range reports aggregate day reports then you need to specifically invalidate day reports to see * Note: because week, month, year, range reports aggregate day reports then you need to specifically invalidate day reports to see
* other periods reports processed.. * other periods reports processed..
* @throws Exception * @throws Exception
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter