We were experiencing many different errors following cache clearing on a site under load, with the most common errors being:
- RouteNotFoundException: Route "entity.node.latest_version" does not exist.
- Error: Call to a member function getFieldStorageDefinition() on null in scheduler_content_moderation_integration_scheduler_hide_publish_date()
- InputBag::get(): Argument #1 ($key) must be of type string, null given
Putting the site in maintenance mode and doing a couple more cache clears kicked the site back in to life.
Upon digging, discovered that it was caused by the same issue that this patch fixes.
Tested and released on a site running Drupal 10.4 (10.4.8 specifically).
We have experienced this sort of "caching strangeness" in the past. I cannot say for sure if this was the cause in the past, but it could well be. It would be great to see this merged in to a future release if others experiences matches ours!
Many thanks!
#23 works fine for me too. Thanks!