diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dc32ca7..682b04d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Release Notes for Blitz -## 4.11.3 - Unreleased +## 4.12.0 - Unreleased + +### Added + +- Added a new `excludedTrackedElementQueryParams` config setting that can be used to exclude params when storing tracked element queries. ### Changed diff --git a/composer.json b/composer.json index d89fca8d..183d455e 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": "4.11.3", + "version": "4.12.0", "type": "craft-plugin", "homepage": "https://putyourlightson.com/plugins/blitz", "license": "proprietary", diff --git a/src/config.php b/src/config.php index bc8ed226..1a338e1d 100644 --- a/src/config.php +++ b/src/config.php @@ -201,7 +201,10 @@ //'trackElementQueries' => true, // The element query params to exclude when storing tracked element queries. - //'excludedTrackedElementQueryParams' => [], + //'excludedTrackedElementQueryParams' => [ + // 'limit', + // 'offset', + //], // The amount of time after which the cache should expire (if not 0). See [[ConfigHelper::durationInSeconds()]] for a list of supported value types. //'cacheDuration' => 0, diff --git a/src/models/SettingsModel.php b/src/models/SettingsModel.php index 58760129..358bee8f 100644 --- a/src/models/SettingsModel.php +++ b/src/models/SettingsModel.php @@ -329,6 +329,11 @@ class SettingsModel extends Model /** * The element query params to exclude when storing tracked element queries. + * + * [ + * 'limit', + * 'offset', + * ] */ public array $excludedTrackedElementQueryParams = [];