The cache key should always include all of the reactive inputs in the expression.
keep the cache keeps as simple as possible. Don’t use large datasets because it is expensive to figure out if a large data frame has already been seen.
r <-reactive(input$x + input$y) %>%bindCache(input$x)