Steve Ebersole commented on an issue
Hibernate ORM / Bug HHH-5870
Cache invalidation bug: createSQLQuery(String sql) creates SQLQueryImpl with null querySpaces, making UpdateTimestampsCache:isUpToDate always return true
While investigating a regression seemingly caused by cache problem on an application, I stumbled upon

UpdateTimestampsCache:89 method public synchronized boolean isUpToDate(Set spaces, Long timestamp) throws HibernateException

always returning true when parameter spaces Set empty.

This is the cause of my regression: QueryCache gets hit even though re...