Skip to content

Commit

Permalink
use filemtime and filesize
Browse files Browse the repository at this point in the history
Faster to check for file change.
  • Loading branch information
Antoine Aflalo committed Mar 1, 2018
1 parent 80043c9 commit 2da7591
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function loadResource($resource)
*/
private function checksum($resource)
{
return md5_file($resource);
return filemtime($resource) . '-' . filesize($resource);
}

/**
Expand Down

0 comments on commit 2da7591

Please sign in to comment.