Closed
Description
Description
In #50055 a new compress
tool was added. It compresses the dataset and reduces the amount of disk space required, especially important for Docker based deployments.
There exists an opportunity to provide this command as a Composer hook, like Google's API Services package does. This would make the experience for the users more streamlined.
Additional opportunity is to (opt-in) expand the command/hook to remove locales which are not in framework.enabled_locales
, much like the translation cache is not built for them.
Example
# compress locale only
bin/console maintenance:locale
# compress + delete any locale not in framework.enabled_locales
bin/console maintenance:locale --leave-enabled-only
# compress + delete any locale not in framework.enabled_locales, but don't delete fr, even if not in framework.enabled_locales
bin/console maintenance:locale --leave-enabled-only --leave fr