Changeset 38849 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/21/2016 02:53:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r38832 r38849 4195 4195 global $wpdb; 4196 4196 4197 $last_changed = wp_cache_get( 'last_changed', 'posts' ); 4198 if ( false === $last_changed ) { 4199 $last_changed = microtime(); 4200 wp_cache_set( 'last_changed', $last_changed, 'posts' ); 4201 } 4197 $last_changed = wp_cache_get_last_changed( 'posts' ); 4202 4198 4203 4199 $hash = md5( $page_path . serialize( $post_type ) ); … … 4541 4537 // $args can be whatever, only use the args defined in defaults to compute the key. 4542 4538 $key = md5( serialize( wp_array_slice_assoc( $r, array_keys( $defaults ) ) ) ); 4543 $last_changed = wp_cache_get( 'last_changed', 'posts' ); 4544 if ( ! $last_changed ) { 4545 $last_changed = microtime(); 4546 wp_cache_set( 'last_changed', $last_changed, 'posts' ); 4547 } 4539 $last_changed = wp_cache_get_last_changed( 'posts' ); 4548 4540 4549 4541 $cache_key = "get_pages:$key:$last_changed";
Note: See TracChangeset
for help on using the changeset viewer.