Skip to content

Commit

Permalink
Add parameters to disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Jan 4, 2024
1 parent 66952da commit de5b2b3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions includes/classes/Indexable/Term/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,15 @@ public function prepare_document( $term_id ) {
*/
public function query_db( $args ) {
$defaults = [
'number' => $this->get_bulk_items_per_page(),
'offset' => 0,
'orderby' => 'id',
'order' => 'desc',
'taxonomy' => $this->get_indexable_taxonomies(),
'hide_empty' => false,
'hierarchical' => false,
'number' => $this->get_bulk_items_per_page(),
'offset' => 0,
'orderby' => 'id',
'order' => 'desc',
'taxonomy' => $this->get_indexable_taxonomies(),
'hide_empty' => false,
'hierarchical' => false,
'update_term_meta_cache' => false,
'cache_results' => false,
];

if ( isset( $args['per_page'] ) ) {
Expand Down

0 comments on commit de5b2b3

Please sign in to comment.