Docs: additional caching documentation (#31925)

* Update query-caching.md

* Update enterprise-configuration.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
This commit is contained in:
Kevin Minehart 2021-03-11 15:45:16 -06:00 committed by GitHub
parent 66e810a5aa
commit 34105a6db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -345,3 +345,9 @@ Setting 'enabled' to true enables caching datasource queries for all data source
### ttl
The default TTL (time to live) if no other TTL is available.
## [caching.memory]
### gc_interval
When storing cache data in-memory, this setting defines how often a background process cleans up stale data from the in-memory cache. More frequent "garbage collection" can keep memory usage from climbing but will increase CPU usage.

View File

@ -22,3 +22,7 @@ Query caching currently works for all backend data sources. You can enable the c
## Enable query caching
To enable and configure query caching, please refer the the [Query caching section of Enterprise Configuration]({{< relref "./enterprise-configuration.md#query-caching" >}}).
## Sending a request without cache
If the data source query request contains an `X-Cache-Skip` header, then Grafana skips the caching middleware, and does not search the cache for a response. This can be particularly useful when debugging data source queries using cURL.