WordPress.org

Make WordPress Core

Changeset 15106


Ignore:
Timestamp:
06/02/2010 02:01:21 PM (9 years ago)
Author:
ryan
Message:

clearstatcache() after writing files. Props momo360modena. fixes #13683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14854 r15106  
    12861286    fwrite( $out_fp,  $response['body']);
    12871287    fclose($out_fp);
     1288    clearstatcache();
    12881289
    12891290    return $headers;
     
    23052306    @fwrite( $ifp, $bits );
    23062307    fclose( $ifp );
     2308    clearstatcache();
     2309   
    23072310    // Set correct file permissions
    23082311    $stat = @ stat( dirname( $new_file ) );
     
    23102313    $perms = $perms & 0000666;
    23112314    @ chmod( $new_file, $perms );
     2315    clearstatcache();
    23122316
    23132317    // Compute the URL
Note: See TracChangeset for help on using the changeset viewer.