ExternalReads without listener should not be cached in query cache
This problem is present in Platform master version since multiple reader threads change in DB.
Steps to reproduce: (requires Simupedia):
- Add break point to NodeStructureRequest.unregistered
- Write the following in SCL Console:
import "Simupedia-1.2/Utils"
existsState projectState "foo"
Delay between calls to NodeStructureRequest.register and NodeStructureRequest.unregister is about 2 seconds during which the results are available in query cache.
This causes unexpected results if another query with a listener is performed during the cached time since the listener won't then be registered.
Edited by Jussi Koskela