Skip to content

Commit

Permalink
5.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 1, 2024
1 parent 3e441ae commit 960071c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release Notes for Blitz

## 5.8.0 - Unreleased
## 5.8.0 - 2024-10-01

### Added

Expand All @@ -14,7 +14,7 @@

### Fixed

- Fixed some styling in the Blitz Diagnostics utility.
- Fixed some styling issues in the Blitz Diagnostics utility.
- Fixed false positives from appearing in the Blitz Hints utility when querying entry authors ([#710](https://github.com/putyourlightson/craft-blitz/issues/710)).

## 5.7.1 - 2024-08-26
Expand Down
3 changes: 3 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@
// With this setting enabled, Blitz will statically include templates using Edge-Side Includes (ESI), which must be enabled on the web server or CDN.
//'esiEnabled' => false,

// Whether only URIs containing lowercase characters should be cached.
//'onlyCacheLowercaseUris' => false,

// Whether URLs with query strings should be cached and how.
// `\putyourlightson\blitz\models\SettingsModel::QUERY_STRINGS_DO_NOT_CACHE_URLS`: Do not cache URLs with query strings
// `\putyourlightson\blitz\models\SettingsModel::QUERY_STRINGS_CACHE_URLS_AS_UNIQUE_PAGES`: Cache URLs with query strings as unique pages
Expand Down
1 change: 0 additions & 1 deletion src/models/SettingsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ public function setAttributes($values, $safeOnly = true): void
parent::setAttributes($values, $safeOnly);

// Normalize enableable fields, ensuring that unset values default to `true`.
// TODO: Remove in version 6.0.0
$settingNames = [
'includedUriPatterns',
'excludedUriPatterns',
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
<hr>

{% set info %}
{{ 'With this setting enabled, URIs containing uppercase characters will not be cached by Blitz. Redirecting uppercase URIs to lowercase URIs using server rewrites is recommended.'|t('blitz') }}
{{ 'With this setting enabled, URIs containing uppercase characters will not be cached by Blitz. Redirecting uppercase URIs to lowercase URIs using server rewrites may be recommended.'|t('blitz') }}
{% endset %}
{{ forms.lightswitchField({
label: "Only Cache Lowercase URIs"|t('blitz'),
Expand Down

0 comments on commit 960071c

Please sign in to comment.