Please don't use `tap`.

```ruby
digest = klass.new(name, format, finder, options).digest
@@cache[cache_key] = digest if ActionView::Resolver.caching?
```