We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*
1 parent 8e4fb6c commit ff87a71Copy full SHA for ff87a71
R/utils.R
@@ -29,8 +29,8 @@ check_is_recent <- function(dates, max_age) {
29
#'
30
#' @keywords internal
31
check_is_cachable <- function(epidata_call, fetch_args) {
32
- as_of_cachable <- (!is.null(epidata_call$params$as_of) && epidata_call$params$as_of != "*")
33
- issues_cachable <- (!is.null(epidata_call$params$issues) && all(epidata_call$params$issues != "*"))
+ as_of_cachable <- (!is.null(epidata_call$params$as_of) && !identical(epidata_call$params$as_of, "*"))
+ issues_cachable <- (!is.null(epidata_call$params$issues) && all(!identical(epidata_call$params$issues, "*")))
34
is_cachable <- (
35
!is.null(cache_environ$epidatr_cache) &&
36
(as_of_cachable || issues_cachable) &&
0 commit comments