Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
perf(users-index): use deleteObject instead of deleteBy
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Jan 12, 2018
1 parent 504821b commit 39625f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions includes/indices/class-algolia-users-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ public function get_default_autocomplete_config() {
*/
public function delete_item( $item ) {
$this->assert_is_supported( $item );
$this->get_index()->deleteBy(
array(
'filters' => 'user_id=' . $item->ID,
)
);
$this->get_index()->deleteObject( $item->ID );
}
}

0 comments on commit 39625f6

Please sign in to comment.