It is generally not recommended to run cache:clear without the --no-warmup parameter, as cache:clear will also do a warmup after clearing the cache. But clearing and warming the cache within the same process might lead to issues. Other than the general recommendation not to do it this way there exists a known problem in regards to old Contao 3 style extensions, when running cache:clear without --no-warmup.
So you should always use:
Code:
cache:clear --no-warmup
cache:warmup
Or better yet, simply remember these commands:
Dev Environment:
Production Environment:
Code:
composer install -o --prefer-dist --no-dev
When running composer install, composer will also execute Contao's Script Handler (if you are using the default composer.json of the Contao Managed Edition), which will then execute the correct commands.
Bookmarks