I am using Action Caching which seems to work OK with Rails 6.
The issue is how to expire the cache when the underlying model is updated?
According to Rails Guides
See the actionpack-action_caching gem. See DHH's key-based cache expiration overview for the newly-preferred method.
According to the Action Caching gem issue, using a Rails Observer to sweep the cache would work.
https://github.com/rails/rails-observers#action-controller-sweeper
But Rails Observer does not seem to work with Rails 6.
So, how to expire the cache with an after_save
callback?