Skip to content

Commit c5c37e4

Browse files
authored
Merge pull request #26 from codewithkyle/hotfix/caching
🐛 Local Chaching Hotfix
2 parents 9ce8efc + 9eace19 commit c5c37e4

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
## [2.3.3] - 2023-03-02
10+
11+
### Fixed
12+
13+
- `checkCache()` null array bug ([#25](https://github.com/codewithkyle/craft-jitter/issues/25))
14+
915
## [2.3.0] - 2022-08-23
1016

1117
### Added
@@ -149,7 +155,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
149155
- delete local files
150156
- delete S3 files
151157

152-
[Unreleased]: https://github.com/codewithkyle/craft-jitter/compare/v2.3.0...HEAD
158+
[Unreleased]: https://github.com/codewithkyle/craft-jitter/compare/v2.3.3...HEAD
159+
[2.3.0]: https://github.com/codewithkyle/craft-jitter/compare/v2.3.0...v2.3.3
153160
[2.3.0]: https://github.com/codewithkyle/craft-jitter/compare/v2.2.0...v2.3.0
154161
[2.2.0]: https://github.com/codewithkyle/craft-jitter/compare/v2.1.0...v2.2.0
155162
[2.1.0]: https://github.com/codewithkyle/craft-jitter/compare/v2.0.0...v2.1.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "codewithkyle/jitter",
33
"description": "A just in time image transformation service.",
44
"type": "craft-plugin",
5-
"version": "2.3.2",
5+
"version": "2.3.3",
66
"keywords": [
77
"craft",
88
"cms",

src/services/Transform.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ private function getTempPath(): string
343343
return $path;
344344
}
345345

346-
private function connectToS3(array $settings): S3Client
346+
private function connectToS3(?array $settings): S3Client
347347
{
348348
$conn = [
349349
'credentials' => [
@@ -385,7 +385,7 @@ private function getPublicPath(): string
385385
return $path;
386386
}
387387

388-
private function getCachedImage(array $settings, string $key): array
388+
private function getCachedImage(?array $settings, string $key): array
389389
{
390390
$response = [];
391391
if (!empty($settings))
@@ -421,7 +421,7 @@ private function getCachedImage(array $settings, string $key): array
421421
return (array)$response;
422422
}
423423

424-
private function checkCache(array $settings, string $key): bool
424+
private function checkCache(?array $settings, string $key): bool
425425
{
426426
$isCached = false;
427427
if (!empty($settings))

0 commit comments

Comments
 (0)