Detect and handle Legacy ActiveSupport cache.