Added
- Added batched generate cache jobs (#537).
- Added a new
driverJobBatchSize
config setting that sets the batch size to use for driver jobs that support batching. - Added a new
refreshCacheEnabled
config setting that determines whether cached pages are refreshed whenever content changes or an integration triggers it. - Added a new
injectScriptPosition
config setting that determines the position in the HTML in which to output the injected script (#636). - Added a verbose output mode to
blitz/cache
console commands that can be activated by adding a--verbose
flag (#642). - Added a default timeout of 60 seconds to the Local Generator.
Changed
- Campaign now requires Craft CMS 4.4.0 or later.
- The Local Generator now uses the
bootstrap.php
file in the project root, if it exists. - The Local Generator now sets the server port according to the HTTP protocol.
- Changed the default timeout of the HTTP Generator to 60 seconds.
Fixed
- Fixed an SQL error that could occur when too many site URIs were being expired at once during the refresh cache process (#639).
- Fixed minor bugs and typos in the recommendations provided in the Blitz Diagnostics utility (#641).
Deprecated
- Deprecated the
SettingsModel::clearOnRefresh
method. UseSettingsModel::shouldClearOnRefresh
instead. - Deprecated the
SettingsModel::expireOnRefresh
method. UseSettingsModel::shouldExpireOnRefresh
instead. - Deprecated the
SettingsModel::generateOnRefresh
method. UseSettingsModel::shouldGenerateOnRefresh
instead. - Deprecated the
SettingsModel::purgeAfterRefresh
method. UseSettingsModel::shouldPurgeAfterRefresh
instead. - Deprecated the
SettingsModel::generatePageBasedOnQueryString
method. UseSettingsModel::shouldGeneratePageBasedOnQueryString
instead. - Deprecated the
SettingsModel::purgeAssetImages
method. UseSettingsModel::shouldPurgeAssetImages
instead.