Skip to content

Commit

Permalink
Fix called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
lustyrain committed Oct 4, 2017
1 parent 31b13ed commit 8bb07c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Utility/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ public function mime() {
public function clearStatCache($all = false) {
if ($all === false && version_compare(PHP_VERSION, '5.3.0') >= 0) {
clearstatcache(true, $this->path);
return ;
}

clearstatcache();
Expand Down

0 comments on commit 8bb07c0

Please sign in to comment.