diff options
| author | Shulhan <ms@kilabit.info> | 2022-04-15 02:56:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-04-15 02:56:59 +0700 |
| commit | a33c4f7e3c9bf4b9c394a0be426b4a6740382aee (patch) | |
| tree | e5f66c8ac80a76f56263467d1aac3e199ddf7907 /cmd | |
| parent | 143087b8edc9fcfbf93dccf213c569797b1eea73 (diff) | |
| download | rescached-a33c4f7e3c9bf4b9c394a0be426b4a6740382aee.tar.xz | |
all: implement API to remove all caches
On the HTTP side, if the query parameter "name" for "DELETE /api/caches"
is "all" it will remove all caches.
On the resolver side, if the parameter for "caches remove" is "all"
it will remove all caches.
This changes require latest lib/dns on share module.
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/resolver/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go index 0be5375..90a1686 100644 --- a/cmd/resolver/main.go +++ b/cmd/resolver/main.go @@ -163,6 +163,7 @@ caches search <string> caches remove <string> Remove the domain name from rescached caches. + If the parameter is "all", it will remove all caches. == Examples |
