Skip to content

Commit

Permalink
Reorder recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 12, 2024
1 parent 8ddfd01 commit c930b29
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/templates/_utilities/diagnostics/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,30 @@
Running queue jobs via web requests can negatively impact the performance of a site and cause queue jobs to stall. <a href="https://putyourlightson.com/plugins/blitz#the-refresh-cache-queue-job-is-stalling" target="_blank" class="go">Learn more</a>
</span>
</p>
<p>
{% if settings.refreshCacheWhenElementSavedUnchanged %}
<span class="warning" title="Warning" aria-label="Warning" data-icon="alert"></span>
Blitz is configured to refresh cached pages when an element is saved but remains unchanged.
{% else %}
<span class="success" title="Passed" aria-label="Passed" data-icon="check"></span>
Blitz is configured not to refresh cached pages when an element is saved but unchanged.
{% endif %}
<span class="info">
With the <code>refreshCacheWhenElementSavedUnchanged</code> 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.
</span>
</p>
<p>
{% if settings.refreshCacheWhenElementSavedNotLive %}
<span class="warning" title="Warning" aria-label="Warning" data-icon="alert"></span>
Blitz is configured to refresh cached pages when an element is saved but not live.
{% else %}
<span class="success" title="Passed" aria-label="Passed" data-icon="check"></span>
Blitz is configured not to refresh cached pages when an element is saved but not live.
{% endif %}
<span class="info">
With the <code>refreshCacheWhenElementSavedNotLive</code> 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.
</span>
</p>
<p>
{% if craft.app.plugins.getPlugin('async-queue') is not null %}
<span class="warning" title="Warning" aria-label="Warning" data-icon="alert"></span>
Expand Down Expand Up @@ -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. <a href="https://putyourlightson.com/plugins/blitz#hints-utility" target="_blank" class="go">Learn more</a>
</span>
</p>
<p>
{% if settings.refreshCacheWhenElementSavedUnchanged %}
<span class="warning" title="Warning" aria-label="Warning" data-icon="alert"></span>
Blitz is configured to refresh cached pages when an element is saved but remains unchanged.
{% else %}
<span class="success" title="Passed" aria-label="Passed" data-icon="check"></span>
Blitz is configured not to refresh cached pages when an element is saved but unchanged.
{% endif %}
<span class="info">
With the <code>refreshCacheWhenElementSavedUnchanged</code> 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.
</span>
</p>
<p>
{% if settings.refreshCacheWhenElementSavedNotLive %}
<span class="warning" title="Warning" aria-label="Warning" data-icon="alert"></span>
Blitz is configured to refresh cached pages when an element is saved but not live.
{% else %}
<span class="success" title="Passed" aria-label="Passed" data-icon="check"></span>
Blitz is configured not to refresh cached pages when an element is saved but not live.
{% endif %}
<span class="info">
With the <code>refreshCacheWhenElementSavedNotLive</code> 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.
</span>
</p>
<p>
{% set refreshExpired = craft.blitz.diagnostics.driverDataAction('refresh-expired-cli') %}
{% if refreshExpired is null or refreshExpired < craft.blitz.diagnostics.dateForDb(now|date_modify('-24 hours')) %}
Expand Down

0 comments on commit c930b29

Please sign in to comment.