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

Commit

Permalink
perf(terms-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 50a2010 commit 504821b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions includes/indices/class-algolia-terms-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ public function get_default_autocomplete_config() {
*/
public function delete_item( $item ) {
$this->assert_is_supported( $item );
$this->get_index()->deleteBy(
array(
'filters' => 'term_id=' . $item->term_id,
)
);
$this->get_index()->deleteObject( $item->term_id );
}
}

0 comments on commit 504821b

Please sign in to comment.