Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add people and group flush to Mixpanel::flush method. #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/Mixpanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ class Mixpanel extends Base_MixpanelBase {
* @var Producers_MixpanelPeople
*/
public $group;



/**
* Instances' list of the Mixpanel class (for singleton use, splitted by token)
* @var Mixpanel[]
*/
private static $_instances = array();


/**
* Instantiates a new Mixpanel instance.
Expand Down Expand Up @@ -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);
}


Expand Down