Skip to content

Commit

Permalink
Avoid overriding the events that are already cached.
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Nov 9, 2023
1 parent c9a21db commit 3ef4050
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Telemetry/Events/Event_Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ public function register() {
* @return void
*/
public function cache_event( $name, $data ) {
$events = [];

self::$events[] = [
'name' => $name,
'data' => wp_json_encode( $data ),
'stellar_slug' => Config::get_stellar_slug(),
];

self::$events = $events;
}

/**
Expand Down

0 comments on commit 3ef4050

Please sign in to comment.