ups, this is worrying. this resets the cache of things to be persisted. the documentLocales tracks in which locale a document is currently loaded. i don't know if we can just reset this array like this. @lsmith77 do you happen to know if we can do this? or if we have some other bug hidden behind this thing that is triggered?

(also i am not sure if we can reset all those arrays in case just one document was comitted. but that is out of scope for this PR)