ClassCastException on changing collection cache strategy

Description

After changing the collection cache strategy, reading old cache entries will cause ClassCastException that propagates and fails loading.
This needs to be handled better.
At least ignore the cache entry, at best ignore and remove the invalid cache entry.

The below stacktrce is from changing `NONSTRICT_READ_WRITE` to `READ_WRITE`, but other value changes produce another `ClassCastException` with different stacktrace.

Environment

None

Assignee

Unassigned

Reporter

Alex CD

Labels