Skip to content

Commit

Permalink
Set cache debugging with an option (#496)
Browse files Browse the repository at this point in the history
Fixes #486
  • Loading branch information
hadley authored Jul 12, 2024
1 parent 31408d4 commit ca798fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# httr2 (development version)

* `req_cache()` now defaults the `debug` argument to the `httr2_cache_debug` option to make it easier to debug caching buried in other people's code (#486).
* `req_oauth_password()` now only asks for your password once (#498).
* `req_url_query()` now allows you to opt out of escaping for multi-value parameters (#404).
* `req_perform_parallel()` now works correctly with `req_cache()` (#447).
Expand Down
2 changes: 1 addition & 1 deletion R/req-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
req_cache <- function(req,
path,
use_on_error = FALSE,
debug = FALSE,
debug = getOption("httr2_cache_debug", FALSE),
max_age = Inf,
max_n = Inf,
max_size = 1024^3) {
Expand Down
2 changes: 1 addition & 1 deletion man/req_cache.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca798fd

Please sign in to comment.