Skip to content

Commit 51794ef

Browse files
committed
Use 60 minutes as default cache TTL
1 parent 1309b50 commit 51794ef

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ grafana-wtf changelog
66
in progress
77
===========
88

9+
- Use 60 minutes as default cache TTL
10+
911
2023-10-03 0.16.0
1012
=================
1113
- Caching: Set cache filename to appname. Thanks, @gtirloni.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ to the ``GRAFANA_URL``::
143143
Caching
144144
=======
145145

146-
``grafana-wtf`` will cache HTTP responses for 300 seconds by default, in order to save
146+
``grafana-wtf`` will cache HTTP responses for 60 minutes by default, in order to save
147147
resources, by not hitting the server each server. You can configure that setting by using
148148
the ``--cache-ttl`` option, or the ``CACHE_TTL`` environment variable.
149149

grafana_wtf/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run():
4848
--select-dashboard=<uuid> Restrict operation to dashboard by UID.
4949
Can be a list of comma-separated dashboard UIDs.
5050
--format=<format> Output format. One of textual, tabular, json, yaml.
51-
--cache-ttl=<cache-ttl> Time-to-live for the request cache in seconds. [default: 300]
51+
--cache-ttl=<cache-ttl> Time-to-live for the request cache in seconds. [default: 3600]
5252
--drop-cache Drop cache before requesting resources
5353
--concurrency=<concurrency> Run multiple requests in parallel. [default: 5]
5454
--dry-run Dry-run mode for the `replace` subcommand.

0 commit comments

Comments
 (0)