Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

resetCache #

Available since 1.4.0

Asynchronously clears the cache database.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/admin/_resetCache?database=[internalCache|memoryStorage]
Method: POST

Other protocols #

{
  "database": "internalCache"
}

Arguments #

  • database: there are two Redis databases that you can clear
    • internalCache : used by Kuzzle to cache internal data, such as authentication tokens, documents followed by real-time subscriptions, active paginated search queries, API usage statistics or cluster state
    • memoryStorage : memory cache managed by Kuzzle's memoryStorage API

Response #

Returns a confirmation that the command is being executed.

{
  "requestId": "d16d5e8c-464a-4589-938f-fd84f46080b9",
  "status": 200,
  "error": null,
  "controller": "admin",
  "action": "resetCache",
  "collection": null,
  "index": null,
  "result": { "acknowledge": true }
}