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
path: root/core
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2020-11-19 11:21:31 +0300
committerGitHub <noreply@github.com>2020-11-19 11:21:31 +0300
commitd5cf7cba9af7b8da38427a7137227d5de6760828 (patch)
tree55e055cacf64fc60519ffc1c7abe4c96861b8ed1 /core
parent0679149fdff4853ba90055414f69ac3e8d32900a (diff)
fix removal of invalidations for segments (#16753)
Diffstat (limited to 'core')
-rw-r--r--core/DataAccess/Model.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/DataAccess/Model.php b/core/DataAccess/Model.php
index d6d2de787e..0742709197 100644
--- a/core/DataAccess/Model.php
+++ b/core/DataAccess/Model.php
@@ -755,7 +755,7 @@ class Model
$table = Common::prefixTable('archive_invalidations');
$sql = "DELETE FROM `$table` WHERE $idSitesClause `name` LIKE ?";
- Db::query($sql, ['done.' . str_replace('_', "\\_", $start) . '%']);
+ Db::query($sql, ['done%.' . str_replace('_', "\\_", $start)]);
}
public function removeInvalidations($idSite, $plugin, $report)
@@ -763,9 +763,9 @@ class Model
$idSitesClause = $this->getRemoveInvalidationsIdSitesClause($idSite);
$table = Common::prefixTable('archive_invalidations');
- $sql = "DELETE FROM `$table` WHERE $idSitesClause `name` = ? AND report = ?";
+ $sql = "DELETE FROM `$table` WHERE $idSitesClause `name` LIKE ? AND report = ?";
- Db::query($sql, ['done.' . $plugin, $report]);
+ Db::query($sql, ['done%.' . str_replace('_', "\\_", $plugin), $report]);
}
public function isArchiveAlreadyInProgress($invalidatedArchive)