Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call
mkdir
and file_put_contents
once to improve performance
- Returns early if there's nothing to write - Call `mkdir` once with recursive flag on - Prepare string to write and call `file_put_contents` once
- Loading branch information
Showing
2 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters