Make WordPress Core


Ignore:
Timestamp:
04/02/2019 11:32:31 PM (5 years ago)
Author:
azaozz
Message:

Site health:

  • Prevent fatal errors from timeouts on the Tools => Site Health => Info tab.
  • Use the get_dirsize() and recurse_dirsize() functions to calculate directory sizes. The results are cached.
  • Introduce "timeout protection" in recurse_dirsize().

Props pento, Clorith, xkon, afercia, jeremyfelt, azaozz.
Fixes #46645.

File:
1 edited

Legend:

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

    r44973 r45104  
    2929    define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );
    3030    /**#@-*/
     31
     32    // Start of run timestamp.
     33    if ( ! defined( 'WP_START_TIMESTAMP' ) ) {
     34        define( 'WP_START_TIMESTAMP', microtime( true ) );
     35    }
    3136
    3237    $current_limit     = @ini_get( 'memory_limit' );
Note: See TracChangeset for help on using the changeset viewer.