WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/26/2014 10:04:52 PM (7 years ago)
Author:
nacin
Message:

Revert [27115] and let cache backends handle the stripping of spaces in cache keys as necessary.

microtime() returns greater precision than microtime(true).

see #27000, #23448, #26903, #14485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r27262 r27300  
    281281        $last_changed = wp_cache_get( 'last_changed', 'comment' );
    282282        if ( ! $last_changed ) {
    283             $last_changed = microtime( true );
     283            $last_changed = microtime();
    284284            wp_cache_set( 'last_changed', $last_changed, 'comment' );
    285285        }
     
    15641564    do_action( 'wp_insert_comment', $id, $comment );
    15651565
    1566     wp_cache_set( 'last_changed', microtime( true ), 'comment' );
     1566    wp_cache_set( 'last_changed', microtime(), 'comment' );
    15671567
    15681568    return $id;
     
    23622362        wp_cache_delete($id, 'comment');
    23632363
    2364     wp_cache_set( 'last_changed', microtime( true ), 'comment' );
     2364    wp_cache_set( 'last_changed', microtime(), 'comment' );
    23652365}
    23662366
Note: See TracChangeset for help on using the changeset viewer.