Skip to content

Commit

Permalink
Merge pull request #380 from UFHealth/update/remove-old-temp-files
Browse files Browse the repository at this point in the history
Remove old craft generated temp files
  • Loading branch information
khalwat authored May 19, 2023
2 parents 3349219 + 9589c8d commit 04f2493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ImageOptimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ static function (ImageTransformerOperationEvent $event): void {
$event
);
if ($tempPath) {
// Remove the old Craft generated transform that's still sitting in the temp directory.
@unlink($event->tempPath);
$event->tempPath = $tempPath;
}
}
Expand Down

0 comments on commit 04f2493

Please sign in to comment.