diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php
index e30094d..11c967a 100644
|
a
|
b
|
class WP_Comment_Query { |
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. |
| 366 | | $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); |
| | 366 | $key = md5( serialize( $this->query_vars ) ); |
| 367 | 367 | $last_changed = wp_cache_get( 'last_changed', 'comment' ); |
| 368 | 368 | if ( ! $last_changed ) { |
| 369 | 369 | $last_changed = microtime(); |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index cc8e843..1f9e6eb 100644
|
a
|
b
|
function get_pages( $args = array() ) { |
| 4402 | 4402 | } |
| 4403 | 4403 | |
| 4404 | 4404 | // $args can be whatever, only use the args defined in defaults to compute the key. |
| 4405 | | $key = md5( serialize( wp_array_slice_assoc( $r, array_keys( $defaults ) ) ) ); |
| | 4405 | $key = md5( serialize( $r ) ); |
| 4406 | 4406 | $last_changed = wp_cache_get( 'last_changed', 'posts' ); |
| 4407 | 4407 | if ( ! $last_changed ) { |
| 4408 | 4408 | $last_changed = microtime(); |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 78dd52c..d9ba68e 100644
|
a
|
b
|
function get_terms( $taxonomies, $args = '' ) { |
| 1437 | 1437 | $query = "SELECT $distinct $fields FROM $wpdb->terms AS t $join WHERE $where $orderby $order $limits"; |
| 1438 | 1438 | |
| 1439 | 1439 | // $args can be anything. Only use the args defined in defaults to compute the key. |
| 1440 | | $key = md5( serialize( wp_array_slice_assoc( $args, array_keys( $defaults ) ) ) . serialize( $taxonomies ) . $query ); |
| | 1440 | $key = md5( serialize( $args ) . serialize( $taxonomies ) . $query ); |
| 1441 | 1441 | $last_changed = wp_cache_get( 'last_changed', 'terms' ); |
| 1442 | 1442 | if ( ! $last_changed ) { |
| 1443 | 1443 | $last_changed = microtime(); |