If you change a PHP, XML or template file in Magento 2 and still see the old version after clearing the cache, it does not necessarily mean you edited the wrong file. Generated code, static assets, PHP OPcache, Varnish or…
Fixing memory limit errors during compilation or upgrade (Magento 2)
You may run out of memory when compiling, upgrading or deploying Magento 2 code. Explicitly increasing PHP’s memory_limit may help. Some examples:
|
1 2 |
php -d memory_limit=-1 bin/magento setup:upgrade php -d memory_limit=-1 bin/magento setup:di:compile |
Setting PHP memory_limit to -1 lets PHP use the maximum available memory. In many cases, you should…