Skip to content

Commit

Permalink
Ignore slow query warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gikaragia committed Oct 4, 2023
1 parent 55b537b commit ca6bc66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function get_items() {
'no_found_rows' => true,
'ignore_sticky_posts' => true,
'posts_per_page' => -1,
'meta_query' => [
'meta_query' => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Returns promoted jobs only which should be a small number.
[
'key' => WP_Job_Manager_Promoted_Jobs::PROMOTED_META_KEY,
'compare' => 'EXISTS',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static function query_promoted_jobs_count( $args = [] ) {
'post_status' => 'any',
'posts_per_page' => 1,
'fields' => 'ids',
'meta_query' => [
'meta_query' => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Returns promoted jobs only which should be a small number.
[
'key' => self::PROMOTED_META_KEY,
'value' => '1',
Expand Down

0 comments on commit ca6bc66

Please sign in to comment.