I would know if there is some way to maintain state across different transactions without using View State.
For example, if in my Custom Controller, for every action method, I need 100 Account's records, right now, I can follow two ways:
- Use static/transient keyword on this list. In this way, the View State doesn't contain my Account's records but I have to execute a SOQL every time I go on the server-side.
- Don't use static/transient keyword on this list. In this way, I have not to execute a SOQL every time I go on the server-side but I could have a problem with the View State.
Is there any way to store and keep information across different transaction not using the View State? The only idea I got is using Platform Cache. Is it correct? Other solution available?