Updated entry for --stats, which replaces -d|--debug

This commit is contained in:
Seednode 2023-02-05 14:42:31 -06:00
parent 5e723bb097
commit 7aad799b15
1 changed files with 4 additions and 4 deletions

View File

@ -72,19 +72,19 @@ This will slightly increase the delay before the application begins responding t
If any `include=`/`exclude=` filters are specified in a given request, the cache will be bypassed for that specific request. If any `include=`/`exclude=` filters are specified in a given request, the cache will be bypassed for that specific request.
The cache can be regenerated at any time by accessing the `/_/clear_cache` endpoint. The cache can be regenerated at any time by accessing the `/_/clear_cache` endpoint.f
If `--cache-file` is set, the cache will be loaded from the specified file on start, and written to the file whenever it is re-generated. If `--cache-file` is set, the cache will be loaded from the specified file on start, and written to the file whenever it is re-generated.
## Debug ## Statistics
If the `-d|--debug` flag is passed, an additional endpoint, `/_/stats`, is registered. If the `--stats` flag is passed, an additional endpoint, `/_/stats`, is registered.
When accessed, this endpoint returns a JSON document listing every file served, along with the number of times it has been served, its filesize, and timestamps of when it was served. When accessed, this endpoint returns a JSON document listing every file served, along with the number of times it has been served, its filesize, and timestamps of when it was served.
## Usage output ## Usage output
``` ```
sage: Usage:
roulette <path> [path]... [flags] roulette <path> [path]... [flags]
roulette [command] roulette [command]