tevtex / module-cachemanagement
A Magento 2 module providing Adobe Commerce's cache management via API.
Installs: 2 166
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/tevtex/module-cachemanagement
This package is auto-updated.
Last update: 2025-12-22 03:52:54 UTC
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
