diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-10-28 23:48:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 23:48:34 +0300 |
commit | 9c7300effbf7cfa69eae470c2231a448feeec517 (patch) | |
tree | 0249c884a889b510cbd83287973076ee157ad839 /plugins/CoreAdminHome | |
parent | 0e910f0badf1aaa6e1b34b83f4f1f9a11bd5b373 (diff) |
only look for done_ok archives when doing usable archive check (#16610)
* Allow today/yesterday in CoreAdminHome.invalidateArchivedReports
* Better message for usable archive message in queueconsumer and only look for done_ok archives in said check
Diffstat (limited to 'plugins/CoreAdminHome')
-rw-r--r-- | plugins/CoreAdminHome/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/API.php b/plugins/CoreAdminHome/API.php index 6f84b954e9..32f269ff70 100644 --- a/plugins/CoreAdminHome/API.php +++ b/plugins/CoreAdminHome/API.php @@ -326,7 +326,7 @@ class API extends \Piwik\Plugin\API continue; } - if ($date->toString() == $theDate) { + if ($date->toString() == $theDate || $theDate == 'today' || $theDate == 'yesterday') { $toInvalidate[] = $date; } else { $invalidDates[] = $theDate; |