Ticket #45662: 45662.diff
| File 45662.diff, 5.0 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/includes/schema.php
1329 1329 1330 1330 $wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 1331 1331 1332 wp_cache_set ( 'last_changed', microtime(),'sites' );1332 wp_cache_set_last_changed( 'sites' ); 1333 1333 } -
src/wp-includes/comment.php
2917 2917 do_action( 'clean_comment_cache', $id ); 2918 2918 } 2919 2919 2920 wp_cache_set ( 'last_changed', microtime(),'comment' );2920 wp_cache_set_last_changed( 'comment' ); 2921 2921 } 2922 2922 2923 2923 /** … … 3507 3507 * @since 5.0.0 3508 3508 */ 3509 3509 function wp_cache_set_comments_last_changed() { 3510 wp_cache_set ( 'last_changed', microtime(),'comment' );3510 wp_cache_set_last_changed( 'comment' ); 3511 3511 } -
src/wp-includes/functions.php
6201 6201 6202 6202 if ( ! $last_changed ) { 6203 6203 $last_changed = microtime(); 6204 wp_cache_set ( 'last_changed', $last_changed, $group);6204 wp_cache_set_last_changed( $group, $last_changed ); 6205 6205 } 6206 6206 6207 6207 return $last_changed; … … 6208 6208 } 6209 6209 6210 6210 /** 6211 * Set last changed date for the specified cache group. 6212 * 6213 * @since 5.1.0 6214 * 6215 * @param string $group Where the cache contents are grouped. 6216 * @param string|bool (Optional) Pass the value of the last changed otherwise, default to current UNIX timestamp with microseconds. 6217 * 6218 * @return bool True is update was successful. 6219 */ 6220 function wp_cache_set_last_changed( $group, $last_changed = false ) { 6221 if ( false === $last_changed ) { 6222 $last_changed = microtime(); 6223 } 6224 6225 return wp_cache_set( 'last_changed', $last_changed, $group ); 6226 } 6227 6228 /** 6211 6229 * Send an email to the old site admin email address when the site admin email address changes. 6212 6230 * 6213 6231 * @since 4.9.0 -
src/wp-includes/ms-blogs.php
367 367 */ 368 368 do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key ); 369 369 370 wp_cache_set ( 'last_changed', microtime(),'sites' );370 wp_cache_set_last_changed( 'sites' ); 371 371 372 372 /** 373 373 * Fires after the blog details cache is cleared. … … 1486 1486 1487 1487 // Bust site query cache. 1488 1488 if ( $added ) { 1489 wp_cache_set ( 'last_changed', microtime(),'sites' );1489 wp_cache_set_last_changed( 'sites' ); 1490 1490 } 1491 1491 1492 1492 return $added; … … 1519 1519 1520 1520 // Bust site query cache. 1521 1521 if ( $deleted ) { 1522 wp_cache_set ( 'last_changed', microtime(),'sites' );1522 wp_cache_set_last_changed( 'sites' ); 1523 1523 } 1524 1524 1525 1525 return $deleted; … … 1578 1578 1579 1579 // Bust site query cache. 1580 1580 if ( $updated ) { 1581 wp_cache_set ( 'last_changed', microtime(),'sites' );1581 wp_cache_set_last_changed( 'sites' ); 1582 1582 } 1583 1583 1584 1584 return $updated; … … 1604 1604 1605 1605 // Bust site query cache. 1606 1606 if ( $deleted ) { 1607 wp_cache_set ( 'last_changed', microtime(),'sites' );1607 wp_cache_set_last_changed( 'sites' ); 1608 1608 } 1609 1609 1610 1610 return $deleted; … … 1997 1997 do_action( 'clean_network_cache', $id ); 1998 1998 } 1999 1999 2000 wp_cache_set ( 'last_changed', microtime(),'networks' );2000 wp_cache_set_last_changed( 'networks' ); 2001 2001 } 2002 2002 2003 2003 /** -
src/wp-includes/ms-functions.php
1335 1335 return $blog_id; 1336 1336 } 1337 1337 1338 wp_cache_set ( 'last_changed', microtime(),'sites' );1338 wp_cache_set_last_changed( 'sites' ); 1339 1339 1340 1340 return $blog_id; 1341 1341 } -
src/wp-includes/post.php
6310 6310 do_action( 'clean_page_cache', $post->ID ); 6311 6311 } 6312 6312 6313 wp_cache_set ( 'last_changed', microtime(),'posts' );6313 wp_cache_set_last_changed( 'posts' ); 6314 6314 } 6315 6315 6316 6316 /** … … 6836 6836 * @since 5.0.0 6837 6837 */ 6838 6838 function wp_cache_set_posts_last_changed() { 6839 wp_cache_set ( 'last_changed', microtime(),'posts' );6839 wp_cache_set_last_changed( 'posts' ); 6840 6840 } -
src/wp-includes/taxonomy.php
3254 3254 do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy ); 3255 3255 } 3256 3256 3257 wp_cache_set ( 'last_changed', microtime(),'terms' );3257 wp_cache_set_last_changed( 'terms' ); 3258 3258 } 3259 3259 3260 3260 /** … … 4593 4593 * @since 5.0.0 4594 4594 */ 4595 4595 function wp_cache_set_terms_last_changed() { 4596 wp_cache_set ( 'last_changed', microtime(),'terms' );4596 wp_cache_set_last_changed( 'terms' ); 4597 4597 } 4598 4598 4599 4599 /**
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)