landofcoder/module-image-clean

清除 Magento 2 中未使用的商品图片

1.0.1 2021-08-04 10:25 UTC

This package is auto-updated.

Last update: 2024-09-04 17:28:38 UTC


README

此模块允许在 Magento 2 网站上清除未使用的商品图片

安装方法

  1. 通过 Composer 安装模块(推荐)

请运行以下命令

composer require landofcoder/module-image-clean

然后运行以下命令

php bin/magento setup:upgrade --keep-generated
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
  1. 通过 FTP 安装模块并运行 Magento 2 命令

该扩展包含 2 个模块:Lof_All, Lof_ImageClean

  • 使用 FTP 客户端连接到您的服务器(例如:FileZilla)。
  • 将模块文件上传到 app/code/Lof/ImageClean 和 app/code/Lof/All 文件夹下的模块包中
  • 通过 SSH 终端访问,然后运行以下命令
php bin/magento setup:upgrade --keep-generated
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
  1. 使用方法
  • 要管理订阅者,请转到 admin > ImageClean > 清除未使用图片
  • 支持控制台命令
php bin/magento lof:imageclean:clean