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:
authorAltamash Shaikh <altu9594@gmail.com>2022-10-21 01:13:31 +0300
committerGitHub <noreply@github.com>2022-10-21 01:13:31 +0300
commitf08803fe2dc6a62e3028bbdd6eb6bcd7e29f14e3 (patch)
tree12342381e58c82cdad67aa13dd5722a113e0af91
parentaa379e1a80df26e2410f23672c717c4f32a1019f (diff)
Revert "Added support to pass segment in Archiving.getIdSitesToMarkArchivesAsInvalidated event (#19876)" (#19891)
This reverts commit aa379e1a80df26e2410f23672c717c4f32a1019f.
-rw-r--r--CHANGELOG.md5
-rw-r--r--core/Archive/ArchiveInvalidator.php6
2 files changed, 1 insertions, 10 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd6df81054..057d468bdc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,11 +4,6 @@ This is the Developer Changelog for Matomo platform developers. All changes in o
The Product Changelog at **[matomo.org/changelog](https://matomo.org/changelog)** lets you see more details about any Matomo release, such as the list of new guides and FAQs, security fixes, and links to all closed issues.
-## Matomo 5.0.0
-
-### Archiving
-* When posting the event `Archiving.getIdSitesToMarkArchivesAsInvalidated` started passing date, period ,segment and name parameter along with idSites parameter.
-
## Matomo 4.12.0
### Breaking Changes
diff --git a/core/Archive/ArchiveInvalidator.php b/core/Archive/ArchiveInvalidator.php
index 1d31234fb9..eb8a7646ee 100644
--- a/core/Archive/ArchiveInvalidator.php
+++ b/core/Archive/ArchiveInvalidator.php
@@ -309,12 +309,8 @@ class ArchiveInvalidator
* }
*
* @param array &$idSites An array containing a list of site IDs which are requested to be invalidated.
- * @param array $dates An array containing the dates to invalidate.
- * @param string $period A string containing the period to be invalidated.
- * @param Segment $segment A Segment Object containing segment to invalidate.
- * @param string $name A string containing the name of the archive to be invalidated.
*/
- Piwik::postEvent('Archiving.getIdSitesToMarkArchivesAsInvalidated', array(&$idSites, $dates, $period, $segment, $name));
+ Piwik::postEvent('Archiving.getIdSitesToMarkArchivesAsInvalidated', array(&$idSites));
// we trigger above event on purpose here and it is good that the segment was created like
// `new Segment($segmentString, $idSites)` because when a user adds a site via this event, the added idSite
// might not have this segment meaning we avoid a possible error. For the workflow to work, any added or removed