Added a pull-request. The proposaed solution is to determine the used transaction isolation level and allow phantom reads (consider as readable items which were cached with a newer transaction than current) when the level is < TRANSACTION_SERIALIZABLE |