Skip to content

Session Cache cannot be use in an asynchronous context #246

@pgajek2

Description

@pgajek2

Describe the bug
When a cached query is executed in an asynchronous context and the .cacheInSessionCache() option is enabled, the following error is thrown:

Class.CacheManager.PlatformCache.contains: line 94, column 1
Class.SOQLCache.CacheStorageProxy.hasCachedRecords: line 354, column 1
Class.SOQLCache.executeInitialQuery: line 297, column 1
Class.SOQLCache.toObject: line 292, column 1
Class.SOQLCache.toValueOf: line 287, column 1

To Reproduce
Execute a cached query in an asynchronous context with the .cacheInSessionCache() option enabled.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions