tevtex/module-cachemanagement
最新稳定版本:1.0.0
Composer 安装命令:
composer require tevtex/module-cachemanagement
包简介
A Magento 2 module providing Adobe Commerce's cache management via API.
README 文档
README
Module to enable cache management in Magento 2 using API.
It adds the following API endpoints to your Magento application:
API Endpoints
Enable all or specific cache types
PUT /V1/tevtex/cache/enable
(Optionally pass the cache types to enable, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
]
}
Disable all cache types
PUT /V1/tevtex/cache/disable
(Optionally pass the cache types to disable, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
]
}
Clean all or specific cache types.
POST /V1/tevtex/cache/clean
(Optionally pass the cache types to clean, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
...
]
}
Flush all or specific cache types.
POST /V1/tevtex/cache/flush
(Optionally pass the cache types to flush, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
...
]
}
Note: The API endpoints are secured and require the Magento_Backend::cache resource access right for authorization.
Installation
Simply run the following command to install the module using
composer
composer require tevtex/module-cachemanagement
Usage
Enable the module using following command:
bin/magento module:enable Tevtex_CacheManagement bin/magento setup:upgrade
Enable the configuration using one of the following ways:
Using Admin Panel
Visit the following location in admin panel and enable the module
Stores > Configuration > TEVTEX > Cache Management > General > Enabled
Using Command Line
Run the following command to enable the module
bin/magento config:set tevtex_cachemanagement/general/enabled 1
Contribute
Feel free to submit pull requests, create issues or spread the word.
License
MIT © Ahmad Farzan
统计信息
- 总下载量: 2.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2023-07-07
