diff options
author | Altamash Shaikh <altu9594@gmail.com> | 2022-10-20 03:37:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 03:37:25 +0300 |
commit | aa379e1a80df26e2410f23672c717c4f32a1019f (patch) | |
tree | c03a20c822a53b7e7296fbb30cb68954482e59fc /core | |
parent | 16e89dd1f34607601b2a8c2c64ea80667ac4cff1 (diff) |
Added support to pass segment in Archiving.getIdSitesToMarkArchivesAsInvalidated event (#19876)
* Added support to pass segment in Archiving.getIdSitesToMarkArchivesAsInvalidated event, #PG-820
* Started passing dates,day and period paramters too
* Started passing the name parameter too
* built vue files
* Updated CHANGELOG.md
Co-authored-by: AltamashShaikh <AltamashShaikh@users.noreply.github.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Archive/ArchiveInvalidator.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Archive/ArchiveInvalidator.php b/core/Archive/ArchiveInvalidator.php index eb8a7646ee..1d31234fb9 100644 --- a/core/Archive/ArchiveInvalidator.php +++ b/core/Archive/ArchiveInvalidator.php @@ -309,8 +309,12 @@ 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)); + Piwik::postEvent('Archiving.getIdSitesToMarkArchivesAsInvalidated', array(&$idSites, $dates, $period, $segment, $name)); // 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 |