Any contract on caching serialized (marshalled) Active Record objects between Rails versions?

Is there any rule of thumb that caches should be cleared before updating the Rails version? Especially if ActiveRecord objects were cached with marshaling?

Could or should the Rails major version be part of the cache key?

Should it be mentioned in the upgrade docs to clear the cache when upgrading Rails?