Skip to content

Commit 9b0c911

Browse files
committed
Fixes #819
1 parent 6b2875b commit 9b0c911

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## 5.11.6 - Unreleased
44

5-
- Cached includes are no longer cached when the debug toolbar is enabled([#822](https://github.com/putyourlightson/craft-blitz/issues/822)).
5+
- Cached includes are no longer cached when the debug toolbar is enabled ([#822](https://github.com/putyourlightson/craft-blitz/issues/822)).
6+
- Fixed a bug in which assets in local filesystems without public URLs were causing refresh cache jobs to fail ([#819](https://github.com/putyourlightson/craft-blitz/issues/819)).
67

78
## 5.11.5 - 2025-06-16
89

src/behaviors/ElementChangedBehavior.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ public function getHasAssetFileChanged(): bool
185185
return false;
186186
}
187187

188+
if (!$element->getVolume()->getFs()->hasUrls) {
189+
return false;
190+
}
191+
188192
if ($element->scenario == Asset::SCENARIO_REPLACE) {
189193
return true;
190194
}

src/helpers/SiteUriHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ public static function getAssetSiteUris(array $elementIds): array
361361

362362
foreach ($assets as $asset) {
363363
$url = $asset->getUrl();
364+
if ($url === null) {
365+
continue;
366+
}
367+
364368
$urls[] = $url;
365369

366370
// Get all existing image transform URLs

0 commit comments

Comments
 (0)