Changeset 23401
- Timestamp:
- 02/11/2013 06:08:14 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r23341 r23401 252 252 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 253 253 if ( ! $last_changed ) { 254 $last_changed = 1;254 $last_changed = microtime(); 255 255 wp_cache_set( 'last_changed', $last_changed, 'comment' ); 256 256 } … … 1293 1293 do_action('wp_insert_comment', $id, $comment); 1294 1294 1295 if ( function_exists( 'wp_cache_incr' ) ) { 1296 wp_cache_incr( 'last_changed', 1, 'comment' ); 1297 } else { 1298 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 1299 wp_cache_set( 'last_changed', $last_changed + 1, 'comment' ); 1300 } 1295 wp_cache_set( 'last_changed', microtime(), 'comment' ); 1301 1296 1302 1297 return $id; … … 2051 2046 wp_cache_delete($id, 'comment'); 2052 2047 2053 if ( function_exists( 'wp_cache_incr' ) ) { 2054 wp_cache_incr( 'last_changed', 1, 'comment' ); 2055 } else { 2056 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 2057 wp_cache_set( 'last_changed', $last_changed + 1, 'comment' ); 2058 } 2048 wp_cache_set( 'last_changed', microtime(), 'comment' ); 2059 2049 } 2060 2050 -
trunk/wp-includes/general-template.php
r23385 r23401 920 920 $last_changed = wp_cache_get( 'last_changed', 'posts' ); 921 921 if ( ! $last_changed ) { 922 $last_changed = 1;922 $last_changed = microtime(); 923 923 wp_cache_set( 'last_changed', $last_changed, 'posts' ); 924 924 } -
trunk/wp-includes/post.php
r23387 r23401 3654 3654 $last_changed = wp_cache_get( 'last_changed', 'posts' ); 3655 3655 if ( ! $last_changed ) { 3656 $last_changed = 1;3656 $last_changed = microtime(); 3657 3657 wp_cache_set( 'last_changed', $last_changed, 'posts' ); 3658 3658 } … … 4673 4673 } 4674 4674 4675 if ( function_exists( 'wp_cache_incr' ) ) { 4676 wp_cache_incr( 'last_changed', 1, 'posts' ); 4677 } else { 4678 $last_changed = wp_cache_get( 'last_changed', 'posts' ); 4679 wp_cache_set( 'last_changed', $last_changed + 1, 'posts' ); 4680 } 4675 wp_cache_set( 'last_changed', microtime(), 'posts' ); 4681 4676 } 4682 4677 -
trunk/wp-includes/taxonomy.php
r23398 r23401 1243 1243 $last_changed = wp_cache_get( 'last_changed', 'terms' ); 1244 1244 if ( ! $last_changed ) { 1245 $last_changed = 1;1245 $last_changed = microtime(); 1246 1246 wp_cache_set( 'last_changed', $last_changed, 'terms' ); 1247 1247 } … … 2712 2712 } 2713 2713 2714 if ( function_exists( 'wp_cache_incr' ) ) { 2715 wp_cache_incr( 'last_changed', 1, 'terms' ); 2716 } else { 2717 $last_changed = wp_cache_get( 'last_changed', 'terms' ); 2718 wp_cache_set( 'last_changed', $last_changed + 1, 'terms' ); 2719 } 2714 wp_cache_set( 'last_changed', microtime(), 'terms' ); 2720 2715 } 2721 2716
Note: See TracChangeset
for help on using the changeset viewer.