Skip to content

Commit

Permalink
feat: Add WebP and backup with classic images
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitn committed Jan 25, 2024
1 parent 030b0d2 commit 9df00d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Model/Resize.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public function __construct(
public function resizeAndGetUrl(string $imagePath, $width, $height, array $resizeSettings = [], string $format = null): string
{
$cacheKey = md5($imagePath . '-' . $width . '-' . $height . '-' . json_encode($resizeSettings));
// if ($resultUrl = $this->cache->load($cacheKey)) {
// return $resultUrl;
// }
if ($resultUrl = $this->cache->load($cacheKey)) {
return $resultUrl;
}

$this->setFormat($format);

Expand Down

0 comments on commit 9df00d9

Please sign in to comment.