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 authored and TimothyBJacobs committed Jan 25, 2024
1 parent b13d0eb commit 5906f46
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 5906f46

Please sign in to comment.