title | issue | author | author_email |
---|---|---|---|
Added async theme compilation configuration |
NEXT-29828 |
Stefan Sluiter |
- Changed
sw-settings-storefront-configuration.html.twig
andmodules/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 forShopware\Storefront\Theme\Message\CompileThemeMessage
messages. - Changed
Shopware\Storefront\Theme\ThemeService::compileTheme
andShopware\Storefront\Theme\ThemeService::compileThemeById
to check whether the compiling should be done asynchronously. - Changed
Shopware\Storefront\Theme\ThemeService
by addingreset
method. - Changed
Shopware\Storefront\Theme\ThemeService
to implement the ResetInterface
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
)