diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cb75f67..07c3a03f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ # Release Notes for Blitz -## 5.9.0 - Unreleased +## 5.9.0 - 2024-10-04 ### Added - Added the ability to ignore hints in the Blitz Hints utility ([#714](https://github.com/putyourlightson/craft-blitz/issues/714)). +### Fixed + +- Fixed a bug that was preventing the organic regeneration of expired cached pages. + ## 5.8.1 - 2024-10-01 ### Fixed diff --git a/src/services/CacheRequestService.php b/src/services/CacheRequestService.php index b0686d6a..6a1843b9 100755 --- a/src/services/CacheRequestService.php +++ b/src/services/CacheRequestService.php @@ -669,6 +669,7 @@ private function prepareResponse(Response $response, SiteUriModel $siteUri, bool if (Blitz::$plugin->expireCache->getIsExpiredSiteUri($siteUri)) { $cacheControlHeader = Blitz::$plugin->settings->cacheControlHeaderExpired; Blitz::$plugin->refreshCache->refreshExpiredSiteUris([$siteUri]); + Blitz::$plugin->refreshCache->refresh(); } $headers = $response->getHeaders();