Broadcast messages should not serialize ActiveRecord data
The more general issue is in https://gitlab.com/gitlab-org/gitlab-ce/issues/38490, but we see a lot of 500 errors due to Rails 4/5 serialization problems: https://sentry.gitlab.net/gitlab/gitlabcom/issues/582160
We could add the RAILS_VERSION
to the cache key, but cache invalidation would not work. Instead, we should emulate what ApplicationSetting
does with CacheableAttribute
.