mirror of
https://github.com/mrclay/minify.git
synced 2025-08-09 07:36:56 +02:00
Merge pull request #19 from jrchamp/patch-1
Remove unneeded code in Minify_Cache_File::store()
This commit is contained in:
@@ -30,12 +30,8 @@ class Minify_Cache_File {
|
||||
? LOCK_EX
|
||||
: null;
|
||||
$file = $this->_path . '/' . $id;
|
||||
if (is_file($file)) {
|
||||
@unlink($file);
|
||||
}
|
||||
if (! @file_put_contents($file, $data, $flag)) {
|
||||
$this->_log("Minify_Cache_File: Write failed to '$file'");
|
||||
return false;
|
||||
}
|
||||
// write control
|
||||
if ($data !== $this->fetch($id)) {
|
||||
|
Reference in New Issue
Block a user