WordPress.org

Make WordPress Core

Changeset 27300


Ignore:
Timestamp:
02/26/2014 10:04:52 PM (4 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.

Location:
trunk/src/wp-includes
Files:
4 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
  • trunk/src/wp-includes/general-template.php

    r27262 r27300  
    986986    $last_changed = wp_cache_get( 'last_changed', 'posts' );
    987987    if ( ! $last_changed ) {
    988         $last_changed = microtime( true );
     988        $last_changed = microtime();
    989989        wp_cache_set( 'last_changed', $last_changed, 'posts' );
    990990    }
  • trunk/src/wp-includes/post.php

    r27262 r27300  
    37343734    $last_changed = wp_cache_get( 'last_changed', 'posts' );
    37353735    if ( ! $last_changed ) {
    3736         $last_changed = microtime( true );
     3736        $last_changed = microtime();
    37373737        wp_cache_set( 'last_changed', $last_changed, 'posts' );
    37383738    }
     
    47554755    }
    47564756
    4757     wp_cache_set( 'last_changed', microtime( true ), 'posts' );
     4757    wp_cache_set( 'last_changed', microtime(), 'posts' );
    47584758}
    47594759
  • trunk/src/wp-includes/taxonomy.php

    r27262 r27300  
    12881288    $last_changed = wp_cache_get( 'last_changed', 'terms' );
    12891289    if ( ! $last_changed ) {
    1290         $last_changed = microtime( true );
     1290        $last_changed = microtime();
    12911291        wp_cache_set( 'last_changed', $last_changed, 'terms' );
    12921292    }
     
    27512751    }
    27522752
    2753     wp_cache_set( 'last_changed', microtime( true ), 'terms' );
     2753    wp_cache_set( 'last_changed', microtime(), 'terms' );
    27542754}
    27552755
Note: See TracChangeset for help on using the changeset viewer.