雪量 / magento2-mutexes
一个封装在互斥锁中的各种操作的 Magento 2 模块
v3.0.1
2022-06-17 14:42 UTC
Requires
- php: ^7.4||^8.1
- magento/framework: ^103
- magento/module-catalog: ^104
- snowio/magento2-lock: ^1.1.0
Requires (Dev)
- rector/rector: ^0.8.56
This package is auto-updated.
Last update: 2024-09-17 19:42:27 UTC
README
描述
确保产品保存的互斥性。锁定应用于产品SKU,因此对一个产品的两次或更多同时保存将导致其中一次成功保存产品,其余的将失败并抛出 RuntimeException
。
Magento 版本
<= 2.3.x
使用 2.x 标签>= 2.4.x
使用 master
先决条件
- PHP 7.4 或更高版本
- Composer (https://getcomposer.org.cn/download/).
magento/framework
103 或更高版本magento/module-catalog
104 或更高版本snowio/magento2-lock
1.0.0 或更高版本
安装
composer require snowio/magento2-product-save-mutex
php bin/magento module:enable SnowIO_ProductSaveMutex
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
许可协议
本软件遵循 MIT 许可协议。 查看许可证