From c930b29127a9ea9dcb8ea24ac6a9e07f2ddaabe3 Mon Sep 17 00:00:00 2001 From: bencroker Date: Mon, 12 Feb 2024 11:56:27 -0600 Subject: [PATCH] Reorder recommendations --- .../_utilities/diagnostics/index.twig | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/templates/_utilities/diagnostics/index.twig b/src/templates/_utilities/diagnostics/index.twig index 948c450d..1ee728f6 100644 --- a/src/templates/_utilities/diagnostics/index.twig +++ b/src/templates/_utilities/diagnostics/index.twig @@ -143,6 +143,30 @@ Running queue jobs via web requests can negatively impact the performance of a site and cause queue jobs to stall. Learn more

+

+ {% if settings.refreshCacheWhenElementSavedUnchanged %} + + Blitz is configured to refresh cached pages when an element is saved but remains unchanged. + {% else %} + + Blitz is configured not to refresh cached pages when an element is saved but unchanged. + {% endif %} + + With the refreshCacheWhenElementSavedUnchanged config setting disabled, cached pages are refreshed only when an element is saved and its content changed. This is recommended and should only be enabled with good reason, as it can cause more refresh cache jobs to be created than necessary. + +

+

+ {% if settings.refreshCacheWhenElementSavedNotLive %} + + Blitz is configured to refresh cached pages when an element is saved but not live. + {% else %} + + Blitz is configured not to refresh cached pages when an element is saved but not live. + {% endif %} + + With the refreshCacheWhenElementSavedNotLive config setting disabled, cached pages are refreshed only when an element is saved and has a live status (live/active/enabled). This is recommended and should only be enabled with good reason, as it can cause more refresh cache jobs to be created than necessary. + +

{% if craft.app.plugins.getPlugin('async-queue') is not null %} @@ -178,30 +202,6 @@ Eager-loading elements is highly recommended. The Blitz Hints utility lists opportunities for eager-loading elements including the field name, the template and the line number. Learn more

-

- {% if settings.refreshCacheWhenElementSavedUnchanged %} - - Blitz is configured to refresh cached pages when an element is saved but remains unchanged. - {% else %} - - Blitz is configured not to refresh cached pages when an element is saved but unchanged. - {% endif %} - - With the refreshCacheWhenElementSavedUnchanged config setting disabled, cached pages are refreshed only when an element is saved and its content changed. This is recommended and should only be enabled with good reason, as it can cause more refresh cache jobs to be created than necessary. - -

-

- {% if settings.refreshCacheWhenElementSavedNotLive %} - - Blitz is configured to refresh cached pages when an element is saved but not live. - {% else %} - - Blitz is configured not to refresh cached pages when an element is saved but not live. - {% endif %} - - With the refreshCacheWhenElementSavedNotLive config setting disabled, cached pages are refreshed only when an element is saved and has a live status (live/active/enabled). This is recommended and should only be enabled with good reason, as it can cause more refresh cache jobs to be created than necessary. - -

{% set refreshExpired = craft.blitz.diagnostics.driverDataAction('refresh-expired-cli') %} {% if refreshExpired is null or refreshExpired < craft.blitz.diagnostics.dateForDb(now|date_modify('-24 hours')) %}