tevtex / module-cachemanagement
一个通过API提供Adobe Commerce缓存管理的Magento 2模块。
1.0.0
2023-07-06 20:04 UTC
This package is auto-updated.
Last update: 2024-09-22 00:36:06 UTC
README
一个用于在Magento 2中使用API启用缓存管理的模块。
它为您应用添加以下API端点
API端点
启用所有或特定缓存类型
PUT /V1/tevtex/cache/enable
(Optionally pass the cache types to enable, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
]
}
禁用所有缓存类型
PUT /V1/tevtex/cache/disable
(Optionally pass the cache types to disable, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
]
}
清理所有或特定缓存类型。
POST /V1/tevtex/cache/clean
(Optionally pass the cache types to clean, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
...
]
}
刷新所有或特定缓存类型。
POST /V1/tevtex/cache/flush
(Optionally pass the cache types to flush, defaults to all cache types)
{
"cache_types":[
"eav",
"config",
...
]
}
注意:API端点是受保护的,需要Magento_Backend::cache资源访问权限进行授权。
安装
只需运行以下命令即可使用
composer安装模块
composer require tevtex/module-cachemanagement
使用方法
使用以下命令启用模块
bin/magento module:enable Tevtex_CacheManagement bin/magento setup:upgrade
使用以下方法之一启用配置
使用管理面板
访问管理面板中的以下位置并启用模块
Stores > Configuration > TEVTEX > Cache Management > General > Enabled
使用命令行
运行以下命令以启用模块
bin/magento config:set tevtex_cachemanagement/general/enabled 1
贡献
请随意提交拉取请求、创建问题或传播消息。
许可协议
MIT © Ahmad Farzan
