定制 landofcoder/module-cleanup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

landofcoder/module-cleanup

最新稳定版本:1.0.1

Composer 安装命令:

composer require landofcoder/module-cleanup

包简介

The module archives and removes old files.

README 文档

README

The module archives and removes old entities. It supports log files, unused product images and quotes.

What it does

For files it basically replaces logrotate. It archives and compresses log files and cleans up the archive folder after a configurable period. For product images it finds unreferenced files in media/catalog/product and moves them to a recycle bin which gets purged after a configurable period. For quotes it simply removes customer and guest quotes after a configurable period.

How it works

The module provides a cron job and a shell command to execute the cleanup jobs. Those jobs are implemented as "handlers" which clean up a specific entity. The set of bundled handlers can be easily extended by custom handlers via di.xml. A resolver will then expose configured handlers to the cron job and the shell command which then can execute the cleanup without additional configuration.

New handlers need to implement the HandlerInterface and be registerdto the handlerPool using di.xml.

How to use

  1. Install the module via Composer:
composer require landofcoder/module-cleanup
  1. Enable it bin/magento module:enable Lof_Cleanup

  2. Install the module and rebuild the DI cache bin/magento setup:upgrade

  3. Run all clean up via command bin/magento lof:cleanup:run

  4. Run clean up unused product images bin/magento lof:cleanup:clean-images

How to configure

Find the modules configuration in the Landofcoder section of your Magento configuration.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固