Hi there, I have a bit of a dilemmna. I have some hooks in my functions.php that run and return values on form load. They check the current user, looks up that user in the database, then return 5 variables to hidden fields. It works 98% of the time, but for whatever reason, whether it be server load, or response time from the database, the hooks sometimes do not return values to the hidden fields on load.
Are there any ways to confirm if the hooks return values before allowing the the form to fully load? And if they do not populate the hidden fields, to have the form refresh?
Or are there any other ways to combat this issue? I’ve already scaled up my web server and analyzed my php settings for best performance based on cores/ram.
I think I am going to try to limit any excessive scripts from loading on my form page first. I just noticed I have some js and ajax calls that don’t need to be there. I’ll reply back as soon as I know its looking better. Thanks Ally!
This reply was modified 2 weeks, 6 days ago by jerkski.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Still having trouble? Head over to the forums.Have you tried looking in the help pages?