Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 1.32 KB

2023-09-14-add-async-theme-compilation.md

File metadata and controls

22 lines (20 loc) · 1.32 KB
title issue author author_email
Added async theme compilation configuration
NEXT-29828
Stefan Sluiter
s.sluiter@shopware.com

Storefront

  • Changed sw-settings-storefront-configuration.html.twig and modules/sw-settings-storefront/page/sw-settings-storefront-index/index.js to add async compilatin setting.
  • Added Shopware\Storefront\Theme\Message\CompileThemeMessage for theme compiling messages.
  • Added Shopware\Storefront\Theme\Message\CompileThemeHandler as a handler for Shopware\Storefront\Theme\Message\CompileThemeMessage messages.
  • Changed Shopware\Storefront\Theme\ThemeService::compileTheme and Shopware\Storefront\Theme\ThemeService::compileThemeById to check whether the compiling should be done asynchronously.
  • Changed Shopware\Storefront\Theme\ThemeService by adding reset method.
  • Changed Shopware\Storefront\Theme\ThemeService to implement the ResetInterface

Upgrade Information

Async theme compilation (@experimental)

It is now possible to trigger the compilation of the storefront css and js via the message queue instead of directly inside the call that changes the theme or activates/deactivates an extension.

You can change the compilation type with the system_config key core.storefrontSettings.asyncThemeCompilation in the administration (settings -> system -> storefront)