Skip to content

Commit

Permalink
DOCS: Explain object caching mechanism
Browse files Browse the repository at this point in the history
Co-authored-by: Alec Geatches <alec.geatches@automattic.com>
  • Loading branch information
chriszarate and alecgeatches authored Dec 19, 2024
1 parent bf7cffa commit a1dcf79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/extending/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ The `cache_ttl` property defines how long the query response should be cached, i

A value of `-1` indicates the query should not be cached. A value of `null` indicates the default TTL should be used (60 seconds). If omitted, the default TTL is used.

Remote data blocks utilize the WordPress object cache (`wp_cache_get()` / `wp_cache_set()`) for response caching. Ensure a persistent object cache plugin is provided by your platform or installed for this value to be respected.

### image_url: string|null

The `image_url` property defines an image URL that represents the query in the UI. If omitted, the query will use the image URL defined by the data source.
Expand Down

0 comments on commit a1dcf79

Please sign in to comment.