Skip to main content

The CacheService service lets you perform getAll, clear and clearAll operations on your scope's caches.

  • getAll allows you to retrieve all caches in the scope.

  • clearAll purges all your scope's caches.

  • clear allows you to purge a list of caches defined by their name.

Cache retrieval

The following examples show how to retrieve the list of all FlowerDocs scope caches.


GET ALL:

Cache purge

The examples below show how to purge FlowerDocs scope caches using the various operations of clear.


CLEAR ALL:

DELETE {{core}}/rest/caches HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host

-- Headers --
token: {{token}}
Content-Type: application/json

CLEAR:

DELETE {{core}}/rest/caches/{names} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
names: name of caches to be purged

-- Headers --
token: {{token}}
Content-Type: application/json