mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Use microtime() instead of incrementors for last_changed to to avoid race conditions with cache evictions.
Props westi fixes #23448 git-svn-id: https://develop.svn.wordpress.org/trunk@23401 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -919,7 +919,7 @@ function wp_get_archives($args = '') {
|
||||
|
||||
$last_changed = wp_cache_get( 'last_changed', 'posts' );
|
||||
if ( ! $last_changed ) {
|
||||
$last_changed = 1;
|
||||
$last_changed = microtime();
|
||||
wp_cache_set( 'last_changed', $last_changed, 'posts' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user