Skip to content

Commit

Permalink
#2189 FileHandler::writeFile() 에서 status cache 및 opcache 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Dec 6, 2017
1 parent c726c14 commit 2d65683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions classes/file/FileHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ function writeFile($filename, $buff, $mode = "w")

@file_put_contents($filename, $buff, $flags|LOCK_EX);
@chmod($filename, 0644);
self::clearStatCache($filename);
self::invalidateOpcache($filename);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion classes/validator/Validator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function getJsPath()
return FALSE;
}

@file_put_contents($filepath, $content, LOCK_EX);
FileHandler::writeFile($filepath, $content);

return $filepath;
}
Expand Down

0 comments on commit 2d65683

Please sign in to comment.