Available services whose cache could be cleared:
POST /system/clear-cache/{service}
For the example the language service will be used.
POST /system/clear-cache/language
{
"service": "language",
"keys": {
"pattern": [
"language*"
],
"found": {
"language*": [
"language_db_table_identifiers_catalog_choice",
"language_db_table_identifiers_catalog_option",
"language_db_fields_catalog_product",
"language_db_fields_catalog_option",
"language_db_table_identifiers_catalog_product",
"language_db_fields_catalog_category",
"language_db_table_identifiers_catalog_category"
]
},
"deleted": 7
}
}
Possible errors:
{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Unsupported service provided! Supported: language, database_tables, crontab, vault"
}
{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Please provide service for which, you want to clear the cache! Supported: language, database_tables, crontab, vault"
}