Version 5.9.8

December 10, 2024

Changed

  • The reasons why pages failed to be generated using the Local Generator are now logged when debug mode is enabled (#737).

Version 5.9.7

December 6, 2024

Changed

  • More deployer settings are now redacted when generating a diagnostics report.
  • The existence of cached files is now checked before deletion, to prevent unnecessarily logged warnings (#741).
  • The injectScriptEvent variable is no longer defined in the global scope, for better compatibility with JavaScript libraries (#747).

Version 5.9.6

November 15, 2024

Fixed

  • Fixed a bug that was preventing cache generation when “Do not cache URLs with query strings” was selected (#733).

Version 5.9.5

November 13, 2024

Fixed

  • Fixed a bug that was preventing cache generation when the “Only Cache Lowercase URIs” setting was enabled.

Version 5.9.4

November 13, 2024

Fixed

  • Fixed a bug introduced in version 5.9.3 that broke cache generation when “Do not cache URLs with query strings” was selected (#733).

Version 5.9.3

November 7, 2024

Fixed

  • Fixed a bug in which pages with query strings in their URLs could be cached even when “Do not cache URLs with query strings” was selected (#729).

Version 5.9.2

November 4, 2024

Fixed

  • Fixed an error that could occur when generating tagged caches in some cases (#728).
  • Fixed a bug in which refresh jobs were not being created immediately in some console commands.

Version 5.9.1

October 22, 2024

Changed

  • The element sidebar panel is no longer displayed when no storage driver is selected (#718).
  • All inject script events are now called on the document element except for load, which is called on the window element (#721).

Fixed

  • Fixed a bug on the Tracked Element Queries page in the Blitz Diagnostics utility (#716).
  • Fixed a bug in the Blitz Diagnostics utility that could throw an error if a custom field existed with the handle displayName (#723).
  • Fixed a bug in the Blitz Diagnostics utility when using a Postgres database (#724).

Version 5.9.0

October 4, 2024

Added

  • Added the ability to ignore hints in the Blitz Hints utility (#714).

Changed

  • CSRF tokens are now only loaded via a script in non-Sprig requests.

Fixed

  • Fixed a bug that was preventing the organic regeneration of expired cached pages.

Version 5.8.1

October 1, 2024

Fixed

  • Fixed an error that could occur when updating to 5.8.0.

Version 5.8.0

October 1, 2024

Added

  • Added the onlyCacheLowercaseUris plugin setting.
  • Added enabled lightswitches to the URI pattern and query string parameter settings.

Changed

  • The injectScriptEvent event is now called on the window element instead of document.
  • Increased the batch size used when flushing the entire cache.

Fixed

  • Fixed some styling issues in the Blitz Diagnostics utility.
  • Fixed false positives from appearing in the Blitz Hints utility when querying entry authors (#710).

Version 5.7.1

August 26, 2024

Fixed

  • Fixed a bug in which installing the plugin via the CLI could cause an error (#705).

Version 5.7.0

August 26, 2024
Critical

This update includes a fix for an issue in which Blitz could send incorrect Cache-Control headers. Please read this article to find out whether the issue affects your site, and what you should do. To ensure the changes in this update are applied, the cache should be refreshed after this update completes.

Added

  • Added a check for whether the cache should be refreshed after every request has ended, meaning that setting the RefreshCacheService::batchMode property no longer serves a purposes and can be safely removed.
  • Added compatibility with Craft 5.3.0 for detecting eager-loading opportunities in the Blitz Hints utility.

Changed

  • The expiry date displayed in the element sidebar panel now reflects the entry’s expiry date, if set and sooner than the cached page’s expiry date (#698).
  • The refreshCacheEnabled config setting is now actually respected.

Fixed

  • Fixed the default cache control header values that were inadvertently set to incorrect values (learn more).
  • Fixed the nested element type count displayed in the Blitz Diagnostics utility.
  • Fixed a bug in which the date cached and expiry dates were not being displayed in the correct timezone in the element sidebar panel (#698).
  • Fixed a bug in which the homepage was not being displayed as cached in the element sidebar panel.
  • Fixed a bug that was causing integrity constraint violation errors to be logged (#699).

Deprecated

  • Deprecated the RefreshCacheService::batchMode property.

Version 5.6.4

August 15, 2024

The cache should be cleared or refreshed after this update completes.

Changed

  • Recreated some database tables to ensure that composite primary keys are correctly created.

Version 5.6.3

August 15, 2024

Fixed

  • Fixed an exception that could be thrown during database migrations when using MariaDB (#693).

Version 5.6.2

August 5, 2024

Fixed

  • Fixed a bug that could throw an exception when viewing tracked entries in the Blitz Diagnostics utility when the database tables have a prefix.
  • Fixed the dropping of a foreign key in a database migration (#693).

Version 5.6.1

August 5, 2024

Fixed

  • Fixed a bug that could throw an exception when viewing tracked entries in the Blitz Diagnostics utility when the database tables have a prefix.

Version 5.6.0

August 5, 2024

For the cache and expiry dates to appear in the new sidebar panel, the cache should be cleared or refreshed after this update completes.

Added

  • Added a sidebar panel to element edit pages (#690).
  • Added a dateCached column to cache records which is output in the sidebar panel and the Blitz Diagnostics utility.
  • Added the ability to track eager-loaded relation fields nested inside matrix blocks (#657).
  • Added a structure view to tracked nested element pages in the Blitz Diagnostics utility.

Changed

  • The craft.blitz.csrfInput(), craft.blitz.csrfParam() and craft.blitz.csrfToken() functions now output inline values rather than inject scripts when called via AJAX requests.
  • The Commerce integration now only refreshes product variants if their inventory is tracked.

Version 5.5.1

July 23, 2024

Changed

  • Nested element types are now differentiated in the Blitz Diagnostics utility.

Fixed

  • Fixed a bug in which the plugin install migration could throw an exception in version 5.5.0 (#688).

Version 5.5.0

July 22, 2024

To ensure the changes are applied, the cache should be cleared or refreshed after this update completes.

Added

  • Added the ability for Blitz to track custom field instances with renamed handles (#682).
  • Added the ability to view which tags are being tracked by each page in the Blitz Diagnostics utility.
  • Added the ability to view which pages/includes are tracking each element in the Blitz Diagnostics utility.

Changed

  • The “Served by Blitz” comment is now also output when the cached output is initially created and served.
  • Batch mode is now enabled whenever elements are resaved via a queue job.
  • Archived and deleted elements are no longer tracked when populated via eager-loaded element queries.
  • Criteria defined in eager-loaded element query mappings are now respected when tracking elements.
  • Updated links to Craft documentation to use the 5.x version.

Fixed

  • Fixed a bug in which the presence of legacy File Storage settings in project config was throwing errors when upgrading from Blitz 4 (#668).
  • Fixed a bug in which the failed site count was not being correctly displayed in the Blitz Diagnostics recommendations.

Version 5.4.0

July 4, 2024

Added

  • Added the ability for element site status changes to be tracked while not refreshing propagating elements (#631).

Version 5.3.4

July 3, 2024

Fixed

  • Fixed a bug in which the cached page count of sites that contained the paths of other sites could be inaccurately displayed in the Blitz Cache utility.

Version 5.3.3

June 27, 2024

Fixed

  • Fixed a bug in which the priority of refresh cache and driver jobs was interpreted as 0 when set to null (#655).
  • Fixed an issue in which the priority of batch jobs could be a negative number and therefore jobs would never complete.

Version 5.3.2

June 18, 2024

Fixed

  • Fixed a bug in which modules that were not bootstrapped were throwing an error when generating a report in the Blitz Diagnostics utility (#668).
  • Fixed a bug in which incorrect purge requests were being sent to CloudFront for the homepage (#673).

Version 5.3.1

May 16, 2024

Added

  • Added a tracked fields column to the tracked elements page in the Blitz Diagnostics utility.

Changed

  • Sites in the Blitz diagnostics report are now sorted by ID in ascending order.

Fixed

  • Fixed a bug in the Git Deployer that was throwing an error when a cached page no longer existed (#664).

Version 5.3.0

May 7, 2024

Added

  • Added anonymised site names to the Blitz diagnostics report.
  • Added a detailed breakdown of element types to the Blitz diagnostics report.
  • Added the ability to download the Blitz diagnostics report as a markdown file.

Changed

  • Optimised the refresh cache process by excluding redundantly tracked element queries based on their limit and offset values.

Fixed

  • Fixed the check for whether the blitz/cache/refresh-expired console command was executed within the past 24 hours.
  • Fixed diagnostics notifications in the control panel.
  • Fixed the detection of lazy eager-loaded queries.
  • Fixed tracking of some element query attributes.

Version 5.2.0

April 27, 2024

Added

  • Added the ability to generate a diagnostics report in the Blitz Diagnostics utility, that can be shared when requesting support.

Version 5.1.6

April 26, 2024

Fixed

  • Fixed bug in the SQL statement introduced in 5.1.5 when using a Postgres database.

Version 5.1.5

April 26, 2024

Changed

  • Improved the deletion of cache records during the refresh cache process to help avoid database memory issues.

Version 5.1.4

April 22, 2024

Changed

The blitz/cache/refresh-cache-tags and blitz/cache/refresh-expired-elements no longer forcibly generate the cache.

Version 5.1.3

April 13, 2024

Changed

  • Reverted back to listening for resave and propagate element events.

Version 5.1.2

April 12, 2024

Changed

  • Dynamic includes in preview requests are now also sent via AJAX, passing through the token param (#653).

Fixed

  • Fixed a bug in which propagated saves were not triggering refresh cache jobs (#654).

Version 5.1.1

April 12, 2024

Fixed

  • Fixed a bug in which the Blitz Diagnostic utility could throw an error when viewing tracked includes and when using Postgres (#653).
  • Fixed an edge-case bug in which cached includes were not being refreshed when expired in a multi-site setup using subfolders.

Version 5.1.0

April 10, 2024

Added

  • Added tracked includes to the Blitz Diagnostics utility.

Fixed

  • Fixed a bug in which cached includes were not being refreshed when a URL was provided.
  • Fixed an edge-case bug in which cached includes were not being refreshed when expired.

Version 5.0.0

April 7, 2024

Added

  • Added compatibility with Craft 5.
  • Added suggesting the use of the eagerly() function to lazy-loaded element queries in the Blitz Hints utility.

Changed

  • The Blitz Hints utility is now powered by Sprig, no longer tracks route variable hints and no longer requires an external package.

Removed

  • Removed the craft.blitz.getTemplate() template variable. Use craft.blitz.includeCached() or craft.blitz.includeDynamic() instead.
  • Removed the craft.blitz.getUri() template variable. Use craft.blitz.fetchUri() instead.
  • Removed the blitz/templates/get controller action.
  • Removed the cacheElements config setting. Use trackElements instead.
  • Removed the cacheElementQueries config setting. Use trackElementQueries instead.
  • Removed the craft.blitz.options.cacheElements() template variable. Use craft.blitz.options.trackElements() instead.
  • Removed the craft.blitz.options.cacheElementQueries() template variable. Use craft.blitz.options.trackElementQueries() instead.
  • Removed the createGzipFiles setting.
  • Removed the createBrotliFiles setting.
  • Removed the BlitzVariable::CACHED_INCLUDE_ACTION constant. Use CacheRequestService::CACHED_INCLUDE_ACTION instead.
  • Removed the BlitzVariable::DYNAMIC_INCLUDE_ACTION constant. Use CacheRequestService::DYNAMIC_INCLUDE_ACTION instead.
  • Removed the ElementTypeHelper::LIVE_STATUSES constant.
  • Removed the SettingsModel::clearOnRefresh method. Use SettingsModel::shouldClearOnRefresh instead.
  • Removed the SettingsModel::expireOnRefresh method. Use SettingsModel::shouldExpireOnRefresh instead.
  • Removed the SettingsModel::generateOnRefresh method. Use SettingsModel::shouldGenerateOnRefresh instead.
  • Removed the SettingsModel::purgeAfterRefresh method. Use SettingsModel::shouldPurgeAfterRefresh instead.
  • Removed the SettingsModel::generatePageBasedOnQueryString method. Use SettingsModel::shouldGeneratePageBasedOnQueryString instead.
  • Removed the SettingsModel::purgeAssetImages method. Use SettingsModel::shouldPurgeAssetImages instead.