Make session cache public, so that user can set it

This commit is contained in:
Winston Chang
2018-07-19 14:55:37 -05:00
parent e58b2e9a47
commit fe730e2d76
2 changed files with 3 additions and 6 deletions

View File

@@ -324,7 +324,7 @@ renderCachedPlot <- function(expr,
cache <<- getShinyOption("cache")
} else if (identical(cache, "session")) {
cache <<- session$getCache()
cache <<- session$cache
} else {
stop('`cache` must either be "app", "session", or a cache object with methods, `$get`, and `$set`.')