diff --git a/src/templates/_utilities/diagnostics/index.twig b/src/templates/_utilities/diagnostics/index.twig index f27fca19..b822093d 100644 --- a/src/templates/_utilities/diagnostics/index.twig +++ b/src/templates/_utilities/diagnostics/index.twig @@ -1,3 +1,6 @@ +{# @var settings \putyourlightson\blitz\models\SettingsModel #} +{% set settings = craft.app.plugins.plugin('blitz').settings %} +
+ {% if craft.app.request.isWebAliasSetDynamically %}
+
+ The
+ @web
alias should be explicitly defined.
+ {% else %}
+
+ The
+ @web
alias is explicitly defined.
+ {% endif %}
+
+ Explicitly defining the @web
alias is important for ensuring that URLs work correctly when the cache is generated via console requests. Learn more
+
+
{% set globalSetCount = craft.globalSets.count %}
{% if globalSetCount > 0 %}
@@ -66,20 +81,6 @@
Globals should be avoided, since they are preloaded on every page in your site, unless the refreshCacheAutomaticallyForGlobals
config setting is disabled. Learn more
- {% if craft.app.request.isWebAliasSetDynamically %}
-
- The
- @web
alias should be explicitly defined.
- {% else %}
-
- The
- @web
alias is explicitly defined.
- {% endif %}
-
- Explicitly defining the @web
alias is important for ensuring that URLs work correctly when the cache is generated via console requests. Learn more
-
-
{% if not craft.app.config.general.generateTransformsBeforePageLoad %}