Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4141 closed defect (bug) (fixed)

default cache behavior leaves tmp files when cache dir unwritable

Reported by: andy's profile andy Owned by: rob1n's profile rob1n
Milestone: 2.2 Priority: high
Severity: normal Version: 2.1
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

As reported by Sabin Iacob [wp-hackers] Wordpress object cache, the files in /tmp/ are not removed.

It seems to happen in cache.php, where there is no unlink in the second clause of the if statement of line 343. The tmp files are unusable so they should be removed regardless of success.

Attachments (1)

cache.diff (518 bytes) - added by andy 19 years ago.

Download all attachments as: .zip

Change History (4)

@andy
19 years ago

#2 @rob1n
19 years ago

  • Keywords has-patch commit added
  • Owner changed from anonymous to rob1n

+1. Looks good.

#3 @rob1n
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5255]) Delete the cache in tmp even if the copy failed. Props andy. fixes #4141

Note: See TracTickets for help on using tickets.