Prevent older transaction to fill cache
Following #7975 (closed), there are other cases where the cache could be filled with old data.
If a transaction started before the one who clear the cache and it is not yet committed. The old transaction may still want to fill the cache but its data are not necessary up to date as the transaction started before the one who modified the data (DB transactions have repeatable read isolation level).