Skip to content

Commit da9f315

Browse files
committed
Distinguish nested element queries in report
1 parent 6b310c1 commit da9f315

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Blitz
22

3+
## 5.11.4 - Unreleased
4+
5+
- Nested element queries are now distinguished in the Blitz diagnostics report.
6+
37
## 5.11.3 - 2025-05-21
48

59
- Fixed a bug in which the response content could be empty when disabling caching using page specific options ([#808](https://github.com/putyourlightson/craft-blitz/issues/808)).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "putyourlightson/craft-blitz",
33
"description": "Intelligent static page caching for creating lightning-fast sites.",
4-
"version": "5.11.3",
4+
"version": "5.11.4",
55
"type": "craft-plugin",
66
"homepage": "https://putyourlightson.com/plugins/blitz",
77
"license": "proprietary",

src/templates/_utilities/diagnostics/_includes/report.twig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@
3636
#### Site Tracking {{ craft.app.isMultiSite ? '[' ~ siteId ~ ']' }}
3737
{{- '\n' -}}
3838
{{- '\n' -}}
39-
- Tracked Pages: {{ craft.blitz.diagnostics.getPagesCount(siteId) }}
39+
- Tracked Pages: {{ craft.blitz.diagnostics.getPagesCount(siteId)|number }}
4040
{{- '\n' -}}
41-
- Tracked Includes: {{ craft.blitz.diagnostics.getIncludesCount(siteId) }}
41+
- Tracked Includes: {{ craft.blitz.diagnostics.getIncludesCount(siteId)|number }}
4242
{{- '\n' -}}
43-
- Tracked Actions: {{ craft.blitz.diagnostics.getActionsCount(siteId) }}
43+
- Tracked Actions: {{ craft.blitz.diagnostics.getActionsCount(siteId)|number }}
4444
{{- '\n' -}}
45-
- Tracked Query String Params: {{ craft.blitz.diagnostics.getParamsCount(siteId) }}
45+
- Tracked Query String Params: {{ craft.blitz.diagnostics.getParamsCount(siteId)|number }}
4646
{{- '\n' -}}
47-
- Tracked Elements: {{ craft.blitz.diagnostics.getElementsCount(siteId) }}
47+
- Tracked Elements: {{ craft.blitz.diagnostics.getElementsCount(siteId)|number }}
4848
{{- '\n' -}}
4949
{% for elementType in craft.blitz.diagnostics.getElementTypes(siteId) %}
50-
{{- '\t' -}}- {{ elementType.type }}: {{ elementType.count|number }}
50+
{{- '\t' -}}- {{ elementType.type }}{{ elementType.nested ? ' (nested)' }}: {{ elementType.count|number }}
5151
{{- '\n' -}}
5252
{% endfor -%}
53-
- Tracked Element Queries: {{ craft.blitz.diagnostics.getElementQueriesCount(siteId) }}
53+
- Tracked Element Queries: {{ craft.blitz.diagnostics.getElementQueriesCount(siteId)|number }}
5454
{{- '\n' -}}
5555
{% for elementQueryType in craft.blitz.diagnostics.getElementQueryTypes(siteId) %}
5656
{{- '\t' -}}- {{ elementQueryType.type }}: {{ elementQueryType.count|number }}
5757
{{- '\n' -}}
5858
{%- endfor -%}
59-
- Tracked Tags: {{ craft.blitz.diagnostics.getTagsCount(siteId) }}
59+
- Tracked Tags: {{ craft.blitz.diagnostics.getTagsCount(siteId)|number }}
6060
{%- if not loop.last %}
6161
{{- '\n' -}}
6262
{{- '\n' -}}

0 commit comments

Comments
 (0)