Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Archive/ArchiveInvalidator.php')
-rw-r--r--core/Archive/ArchiveInvalidator.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Archive/ArchiveInvalidator.php b/core/Archive/ArchiveInvalidator.php
index 95597dc480..2301c3ed97 100644
--- a/core/Archive/ArchiveInvalidator.php
+++ b/core/Archive/ArchiveInvalidator.php
@@ -544,12 +544,15 @@ class ArchiveInvalidator
* since adding invalidations can take a long time and delay UI response times.
*
* @param int|int[]|'all' $idSites
- * @param string $pluginName
+ * @param string|int $pluginName
* @param string|null $report
* @param Date|null $startDate
*/
- public function scheduleReArchiving($idSites, string $pluginName, string $report = null, Date $startDate = null)
+ public function scheduleReArchiving($idSites, string $pluginName, $report = null, Date $startDate = null)
{
+ if (!empty($report)) {
+ $this->removeInvalidationsSafely($idSites, $pluginName, $report);
+ }
try {
$reArchiveList = new ReArchiveList($this->logger);
$reArchiveList->add(json_encode([