WordPress.org

Make WordPress Core

Changeset 5255


Ignore:
Timestamp:
04/12/2007 04:31:47 PM (15 years ago)
Author:
rob1n
Message:

Delete the cache in tmp even if the copy failed. Props andy. fixes #4141

File:
1 edited

Legend:

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

    r4953 r5255  
    341341                fclose($fd);
    342342                if (!@ rename($temp_file, $cache_file)) {
    343                     if (@ copy($temp_file, $cache_file))
    344                         @ unlink($temp_file);
    345                     else
     343                    if (!@ copy($temp_file, $cache_file))
    346344                        $errors++;
     345                    @ unlink($temp_file);
    347346                }
    348347                @ chmod($cache_file, $file_perms);
Note: See TracChangeset for help on using the changeset viewer.