Skip to content

Commit

Permalink
Merge pull request #16 from WeareJH/dump-autoload-with-apcu-after-di-…
Browse files Browse the repository at this point in the history
…compile

- added optimized dump-autoload after di:compile to make sure that it contains dynamically generated classes
  • Loading branch information
pknap authored Oct 7, 2024
2 parents c10d0eb + 32d83a2 commit 6e537dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe/custom/magento2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

desc('Local DI compile');
task('magento:local:setup:di:compile', function () {
runLocally('{{local_bin/php}} {{local_src}}/bin/magento setup:di:compile');
runLocally('{{local_bin/php}} {{local_src}}/bin/magento setup:di:compile && {{local_bin/composer}} dump-autoload -o --apcu');
});

// Remote commands
Expand Down

0 comments on commit 6e537dd

Please sign in to comment.