function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
juppyjuppy 

Custom controller/vf page resets after a few calls - cache=false

I have a multi-step wizard consisting of a single custom controller and a single VF page.

I need to do all my processing within one controller/page pair so I can keep track of my processing status and provide 'back' button functionality.

The VF page displays different sections depending on the settings of a series of booleans which correspond to the stages of the wizard.

 

My challenge is that about once in every four executions, usually in step 3 or 4, everything resets and the controller's constructor is called.

 

Debug logs show no obvious reason for this happening.

One thought is that I need to have the apex:page cache=true and I am testing that now.

However my client would prefer me not to cache anything unless I need to.

 

An interesting and frustrating problem, would be interested to hear if anyone else has experienced this behaviour?