Render cache

Take a snapshot of the response body after generating data to "freeze" it for searching, sorting, paginate and showing a single state.

All cached endpoints have a blue marker on the left.

On the project endpoint list page, each endpoint has a render cache control.

  • Create - Generates the response body in the background and saves it. All future answers will be identical.

  • Refresh - Regenerates the response body and saves the data for future requests.

  • Remove - deletes a snapshot. All future responses will have data based on the latest instructions.

When using the render cache, the search engine works without changes. You will be able to use the search as before.

Example

This endpoint works using the render cache. Below is the code that is described in the endpoint editor.

Body code:

{
    "errors": null,
    "responseData": {$comment}
}

Embedded block comment:

{
    "id": "{$embeddedLoopIndex}",
    "email": "{$randomSafeEmail}",
    "createdAt": "{$randomUnixTime}",
    "content": "{$randomParagraph:2}"
}

Last updated