From aa4c05638f734d549eadea7c006e45e640b73f3c Mon Sep 17 00:00:00 2001 From: bencroker Date: Fri, 15 Nov 2024 16:58:13 +0100 Subject: [PATCH] 5.9.6 --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- src/services/CacheRequestService.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c14d7c44..d0d5683b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes for Blitz +## 5.9.6 - 2024-11-15 + +### Fixed + +- Fixed a bug that was preventing cache generation when “Do not cache URLs with query strings” was selected ([#733](https://github.com/putyourlightson/craft-blitz/issues/733)). + ## 5.9.5 - 2024-11-13 ### Fixed diff --git a/composer.json b/composer.json index 9854cc92..1fad989d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "putyourlightson/craft-blitz", "description": "Intelligent static page caching for creating lightning-fast sites.", - "version": "5.9.5", + "version": "5.9.6", "type": "craft-plugin", "homepage": "https://putyourlightson.com/plugins/blitz", "license": "proprietary", diff --git a/src/services/CacheRequestService.php b/src/services/CacheRequestService.php index 76df7acb..850f6f73 100755 --- a/src/services/CacheRequestService.php +++ b/src/services/CacheRequestService.php @@ -251,7 +251,7 @@ public function getIsCacheableSiteUri(?SiteUriModel $siteUri): bool return false; } - if (Blitz::$plugin->settings->queryStringCaching == SettingsModel::QUERY_STRINGS_DO_NOT_CACHE_URLS) { + if (Blitz::$plugin->settings->queryStringCaching === SettingsModel::QUERY_STRINGS_DO_NOT_CACHE_URLS) { $queryStringParams = QueryStringHelper::getValidQueryStringParams($siteUri->uri); if (!empty($queryStringParams)) {