| | |
| | | { |
| | | |
| | | $term_posts = $this->cache->remember( |
| | | $this->cache->generateKey(['id' => $term_id, 'taxonomy' => $taxonomy]), |
| | | ['id' => $term_id, 'taxonomy' => $taxonomy], |
| | | function () use ($term_id, $taxonomy) { |
| | | global $wpdb; |
| | | return $wpdb->get_col($wpdb->prepare( |
| | |
| | | |
| | | |
| | | $related_term_posts = $this->cache->remember( |
| | | $this->cache->generateKey(['id' => $related_term_id, 'taxonomy' => $related_taxonomy]), |
| | | ['id' => $related_term_id, 'taxonomy' => $related_taxonomy], |
| | | function () use($related_term_id, $related_taxonomy) { |
| | | global $wpdb; |
| | | return $wpdb->get_col($wpdb->prepare( |