From 6f367fc8ca46e932d71815ebcdaf2c52cba12b0a Mon Sep 17 00:00:00 2001 From: John Gile Date: Fri, 2 Jun 2023 11:49:00 -0700 Subject: [PATCH] Add people and group flush to Mixpanel::flush method. Most would assume that all three would be flushed if called manually. --- lib/Mixpanel.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Mixpanel.php b/lib/Mixpanel.php index 632bbd7..5dbe65c 100644 --- a/lib/Mixpanel.php +++ b/lib/Mixpanel.php @@ -128,7 +128,7 @@ class Mixpanel extends Base_MixpanelBase { * @var Producers_MixpanelPeople */ public $group; - + /** @@ -136,7 +136,7 @@ class Mixpanel extends Base_MixpanelBase { * @var Mixpanel[] */ private static $_instances = array(); - + /** * Instantiates a new Mixpanel instance. @@ -189,6 +189,8 @@ public function enqueueAll($messages = array()) { */ public function flush($desired_batch_size = 50) { $this->_events->flush($desired_batch_size); + $this->people->flush($desired_batch_size); + $this->group->flush($desired_batch_size); }