Skip to content

Clear static content when enabling new module from CLI #1711

Closed
@markshust

Description

@markshust

when running module:enable:

root@1ade1c331026:/var/www/html# ./bin/magento module:enable Foo_Bar
The following modules have been enabled:
- Foo_Bar

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully.
Alert: Generated static view files were not cleared. You can clear them using the --clear-static-content option. Failure to clear static view files might cause display issues in the Admin and storefront.

The alert message seems problematic:
Alert: Generated static view files were not cleared. You can clear them using the --clear-static-content option. Failure to clear static view files might cause display issues in the Admin and storefront.

If there are issues if the --clear-static-content param isn't passed in, shouldn't it be the default option when enabling a module?

Metadata

Metadata

Assignees

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions