When receiving a document related event, the document is gathered from the cache, and the original document is modified to be consistent from listeners point of view. The problem is that what is good for listeners is also wrong for the cache and a document with a bad original document (in the cache the original document should be always be identical to the document) is left in the cache. |