⚡ Удаление неиспользуемых модулей. Делаем Magento 2 легче и быстрее!

Нужна ли вам эта тема?

  • Очень

    Голосов: 4 19,0%
  • 100% Да

    Голосов: 15 71,4%
  • 50/50

    Голосов: 1 4,8%
  • Нет

    Голосов: 0 0,0%
  • Удалить

    Голосов: 1 4,8%

  • Всего проголосовало
    21

volanar

Мой дом здесь!
Регистрация
20 Дек 2015
Сообщения
527
Реакции
344
Удаление неиспользуемых модулей можно сделать в файлах мадженто до установки без использования композер?
Я скачал зип фольдер мадженто и хочу удалить неиспользуемых модулей,вообще это можно,а если да,как?
Можно вручную, полдня потратить, удалить файлы и зависимости, но при первом обновлениии все слетит. А можно все сделать за 10 минут с помощью
"replace": {
...
},
Поэтому не вижу смысла.
 

casha1362

Постоялец
Регистрация
9 Июл 2016
Сообщения
76
Реакции
58
Можно вручную, полдня потратить, удалить файлы и зависимости, но при первом обновлениии все слетит. А можно все сделать за 10 минут с помощью
"replace": {
...
},
Поэтому не вижу смысла.
Спасибо тебе друг, вставил этот код в composer.json и сделал комманду composer update и вуало:
"replace": {
"amzn/amazon-pay-and-login-magento-2-module": "*",
"amzn/amazon-pay-and-login-with-amazon-core-module": "*",
"amzn/amazon-pay-module": "*",
"amzn/amazon-pay-sdk-php": "*",
"amzn/login-with-amazon-module": "*",
"astock/stock-api-libphp": "*",
"dotmailer/dotmailer-magento2-extension": "*",
"dotmailer/dotmailer-magento2-extension-chat": "*",
"dotmailer/dotmailer-magento2-extension-enterprise": "*",
"dotmailer/dotmailer-magento2-extension-package": "*",
"klarna/m2-payments": "*",
"klarna/module-core": "*",
"klarna/module-kp": "*",
"klarna/module-ordermanagement": "*",
"magento/adobe-stock-integration": "*",
"magento/google-shopping-ads": "*",
"magento/inventory-metapackage": "*",
"magento/inventory-composer-installer": "*",
"magento/inventory-composer-metapackage": "*",
"magento/module-adobe-ims": "*",
"magento/module-adobe-ims-api": "*",
"magento/module-adobe-stock-admin-ui": "*",
"magento/module-adobe-stock-asset": "*",
"magento/module-adobe-stock-asset-api": "*",
"magento/module-adobe-stock-client": "*",
"magento/module-adobe-stock-client-api": "*",
"magento/module-adobe-stock-image": "*",
"magento/module-adobe-stock-image-admin-ui": "*",
"magento/module-adobe-stock-image-api": "*",
"magento/module-analytics": "*",
"magento/module-authorizenet": "*",
"magento/module-authorizenet-acceptjs": "*",
"magento/module-authorizenet-cardinal": "*",
"magento/module-authorizenet-graph-ql": "*",
"magento/module-braintree-graph-ql": "*",
"magento/module-bundle-graph-ql": "*",
"magento/module-cardinal-commerce": "*",
"magento/module-catalog-analytics": "*",
"magento/module-catalog-cms-graph-ql": "*",
"magento/module-catalog-customer-graph-ql": "*",
"magento/module-catalog-customer-ql": "*",
"magento/module-catalog-graph-ql": "*",
"magento/module-catalog-rule-graph-ql": "*",
"magento/module-catalog-inventory-graph-ql": "*",
"magento/module-catalog-url-rewrite-graph-ql": "*",
"magento/module-checkout-agreements-graph-ql": "*",
"magento/module-cms-graph-ql": "*",
"magento/module-cms-url-rewrite-graph-ql": "*",
"magento/module-configurable-product-graph-ql": "*",
"magento/module-customer-analytics": "*",
"magento/module-customer-balance-graph-ql": "*",
"magento/module-customer-downloadable-graph-ql": "*",
"magento/module-customer-graph-ql": "*",
"magento/module-cybersource": "*",
"magento/module-dhl": "*",
"magento/module-directory-graph-ql": "*",
"magento/module-downloadable-graph-ql": "*",
"magento/module-eav-graph-ql": "*",
"magento/module-eway": "*",
"magento/module-fedex": "*",
"magento/module-gift-card-account-graph-ql": "*",
"magento/module-gift-card-graph-ql": "*",
"magento/module-google-adwords": "*",
"magento/module-google-optimizer": "*",
"magento/module-graph-ql": "*",
"magento/module-graph-ql-cache": "*",
"magento/module-grouped-product-graph-ql": "*",
"magento/module-inventory": "*",
"magento/module-inventory-admin-ui": "*",
"magento/module-inventory-advanced-checkout": "*",
"magento/module-inventory-api": "*",
"magento/module-inventory-bundle-product": "*",
"magento/module-inventory-bundle-product-admin-ui": "*",
"magento/module-inventory-cache": "*",
"magento/module-inventory-catalog": "*",
"magento/module-inventory-catalog-admin-ui": "*",
"magento/module-inventory-catalog-api": "*",
"magento/module-inventory-catalog-search": "*",
"magento/module-inventory-configurable-product": "*",
"magento/module-inventory-configurable-product-admin-ui": "*",
"magento/module-inventory-configurable-product-indexer": "*",
"magento/module-inventory-configuration": "*",
"magento/module-inventory-configuration-api": "*",
"magento/module-inventory-distance-based-source-selection": "*",
"magento/module-inventory-distance-based-source-selection-admin-ui": "*",
"magento/module-inventory-distance-based-source-selection-api": "*",
"magento/module-inventory-elasticsearch": "*",
"magento/module-inventory-export-stock": "*",
"magento/module-inventory-export-stock-api": "*",
"magento/module-inventory-graph-ql": "*",
"magento/module-inventory-grouped-product": "*",
"magento/module-inventory-grouped-product-admin-ui": "*",
"magento/module-inventory-grouped-product-indexer": "*",
"magento/module-inventory-import-export": "*",
"magento/module-inventory-indexer": "*",
"magento/module-inventory-low-quantity-notification": "*",
"magento/module-inventory-low-quantity-notification-admin-ui": "*",
"magento/module-inventory-low-quantity-notification-api": "*",
"magento/module-inventory-multi-dimensional-indexer-api": "*",
"magento/module-inventory-product-alert": "*",
"magento/module-inventory-requisition-list": "*",
"magento/module-inventory-reservation-cli": "*",
"magento/module-inventory-reservations": "*",
"magento/module-inventory-reservations-api": "*",
"magento/module-inventory-sales": "*",
"magento/module-inventory-sales-admin-ui": "*",
"magento/module-inventory-sales-api": "*",
"magento/module-inventory-sales-frontend-ui": "*",
"magento/module-inventory-setup-fixture-generator": "*",
"magento/module-inventory-shipping": "*",
"magento/module-inventory-shipping-admin-ui": "*",
"magento/module-inventory-source-deduction-api": "*",
"magento/module-inventory-source-selection": "*",
"magento/module-inventory-source-selection-api": "*",
"magento/module-inventory-in-store-pickup-webapi-extension": "*",
"magento/module-inventory-in-store-pickup-shipping-api": "*",
"magento/module-inventory-in-store-pickup-shipping-admin-ui": "*",
"magento/module-inventory-in-store-pickup-api": "*",
"magento/module-inventory-in-store-pickup-shipping": "*",
"magento/module-inventory-in-store-pickup-sales-api": "*",
"magento/module-inventory-in-store-pickup": "*",
"magento/module-inventory-in-store-pickup-quote": "*",
"magento/module-inventory-in-store-pickup-sales": "*",
"magento/module-inventory-in-store-pickup-sales-admin-ui": "*",
"magento/module-inventory-in-store-pickup-quote-graph-ql": "*",
"magento/module-inventory-in-store-pickup-multishipping": "*",
"magento/module-inventory-in-store-pickup-graph-ql": "*",
"magento/module-inventory-in-store-pickup-frontend": "*",
"magento/module-inventory-in-store-pickup-admin-ui": "*",
"magento/module-inventory-bundle-import-export": "*",
"magento/module-inventory-bundle-product-indexer": "*",
"magento/module-marketplace": "*",
"magento/module-new-relic-reporting": "*",
"magento/module-paypal-graph-ql": "*",
"magento/module-quote-analytics": "*",
"magento/module-quote-graph-ql": "*",
"magento/module-related-product-graph-ql": "*",
"magento/module-review-analytics": "*",
"magento/module-reward-graph-ql": "*",
"magento/module-rma-graph-ql": "*",
"magento/module-sales-analytics": "*",
"magento/module-sales-graph-ql": "*",
"magento/module-sample-data": "*",
"magento/module-send-friend-graph-ql": "*",
"magento/module-signifyd": "*",
"magento/module-store-graph-ql": "*",
"magento/module-swagger": "*",
"magento/module-swagger-webapi": "*",
"magento/module-swagger-webapi-async": "*",
"magento/module-swatches-graph-ql": "*",
"magento/module-tax-graph-ql": "*",
"magento/module-theme-graph-ql": "*",
"magento/module-ups": "*",
"magento/module-url-rewrite-graph-ql": "*",
"magento/module-usps": "*",
"magento/module-vault-graph-ql": "*",
"magento/module-securitytxt": "*",
"magento/module-version": "*",
"magento/module-weee-graph-ql": "*",
"magento/module-wishlist-analytics": "*",
"magento/module-wishlist-graph-ql": "*",
"magento/module-worldpay": "*",
"magento/module-elasticsearch-6": "*",
"magento/module-csp": "*",
"magento/module-admin-analytics": "*",
"magento/module-paypal-captcha": "*",
"magento/module-release-notification": "*",
"magento/module-media-gallery": "*",
"magento/module-media-gallery-integration": "*",
"magento/module-media-gallery-ui": "*",
"magento/module-media-gallery-api": "*",
"magento/module-media-gallery-synchronization": "*",
"magento/module-media-gallery-ui-api": "*",
"magento/module-media-gallery-catalog": "*",
"magento/module-media-gallery-synchronization-api": "*",
"magento/module-media-gallery-renditions": "*",
"magento/module-media-gallery-renditions-api": "*",
"magento/module-media-content": "*",
"magento/module-media-content-cms": "*",
"magento/module-media-content-synchronization-catalog": "*",
"magento/module-media-content-api": "*",
"magento/module-media-content-synchronization": "*",
"magento/module-media-content-synchronization-cms": "*",
"magento/module-media-content-catalog": "*",
"magento/module-media-content-synchronization-api": "*",
"temando/module-shipping": "*",
"temando/module-shipping-m2": "*",
"temando/module-shipping-remover": "*",
"vertex/module-address-validation": "*",
"vertex/module-tax": "*",
"vertex/product-magento-module": "*",
"vertex/sdk": "*",
"yotpo/magento2-module-yotpo-reviews": "*",
"yotpo/magento2-module-yotpo-reviews-bundle": "*"
},

И тепер М2 работает на два раза быстрее.
 
Сверху