Skip to content

Commit

Permalink
Fix organic regeneration of expired cached pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 4, 2024
1 parent b295825 commit 9357ebb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/services/CacheRequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9357ebb

Please sign in to comment.