mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-26 04:49:40 +00:00
Add: cache clearing
This commit is contained in:
parent
c08c2a62cb
commit
af1f4e7971
1 changed files with 36 additions and 0 deletions
|
|
@ -6031,3 +6031,39 @@ paths:
|
||||||
example: 11111
|
example: 11111
|
||||||
'400':
|
'400':
|
||||||
$ref: '#/components/responses/badRequest'
|
$ref: '#/components/responses/badRequest'
|
||||||
|
/api/cache/purge-all:
|
||||||
|
post:
|
||||||
|
operationId: purgeAllCache
|
||||||
|
summary: Purge all cache
|
||||||
|
description: Purge all cache. This endpoint purges all cache entries under `metadata/cache`.
|
||||||
|
tags:
|
||||||
|
- Cache
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
example: 'Server cache purged.'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/responses/forbidden'
|
||||||
|
/api/cache/purge-items:
|
||||||
|
post:
|
||||||
|
operationId: purgeCacheItems
|
||||||
|
summary: Purge cache items
|
||||||
|
description: Purge cache items. This endpoint purges cache entries by key under `metadata/cache/items`.
|
||||||
|
tags:
|
||||||
|
- Cache
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
example: 'Item cache purged.'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/badRequest'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/responses/forbidden'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue