9.7.3 Scope of the cache functionality
The cache data is stored for each persistence context. Therefore, the data cannot be obtained from the cache even if the entity object is invoked in another persistence context.
Note that the cache data is stored for the duration from the generation of the persistence context until the persistence context is destroyed.