Changeset 38849 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 10/21/2016 02:53:19 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-comment-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r38768 r38849 394 394 // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. 395 395 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); 396 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 397 if ( ! $last_changed ) { 398 $last_changed = microtime(); 399 wp_cache_set( 'last_changed', $last_changed, 'comment' ); 400 } 396 $last_changed = wp_cache_get_last_changed( 'comment' ); 397 401 398 402 399 $cache_key = "get_comments:$key:$last_changed"; … … 973 970 974 971 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); 975 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 976 if ( ! $last_changed ) { 977 $last_changed = microtime(); 978 wp_cache_set( 'last_changed', $last_changed, 'comment' ); 979 } 972 $last_changed = wp_cache_get_last_changed( 'comment' ); 980 973 981 974 // Fetch an entire level of the descendant tree at a time.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)