Why does first level caching also work on pessimistic lock query with jpa and hibernate

I encountered a problem similar to this question,So are there any other solutions besides clear, refresh, and other operations now