mirror of
https://github.com/mrclay/minify.git
synced 2025-08-10 16:14:18 +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
|
? LOCK_EX
|
||||||
: null;
|
: null;
|
||||||
$file = $this->_path . '/' . $id;
|
$file = $this->_path . '/' . $id;
|
||||||
if (is_file($file)) {
|
|
||||||
@unlink($file);
|
|
||||||
}
|
|
||||||
if (! @file_put_contents($file, $data, $flag)) {
|
if (! @file_put_contents($file, $data, $flag)) {
|
||||||
$this->_log("Minify_Cache_File: Write failed to '$file'");
|
$this->_log("Minify_Cache_File: Write failed to '$file'");
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
// write control
|
// write control
|
||||||
if ($data !== $this->fetch($id)) {
|
if ($data !== $this->fetch($id)) {
|
||||||
|
Reference in New Issue
Block a user