Slow submission (10 seconds)

Hi there,

Since a couple of days, our forms are submitting very slow. I’ve made a copy of the website and tested it with the following things:

  • php memory from 256 to 512
  • WPML plugin disables
  • Turn off ajax
  • Setup SMTP (sendinblue)

But all the test I do, the form takes minimum 9 second to submit, in some cases it takes even 25 seconds!

It there any solution for this?

The first thing to do is enable logging, so you can review the logs and see where the big time delay is coming in. Here is the documentation for enabling logging:

With logging enabled, test the form. After testing the form, take a look at the Gravity Forms core log file, and find the logging lines where you have a big time gap between one log line and the next. That is where the delay is being introduced. Most common areas are with email notifications, and connections to third party services.

If you need more assistance, please share the links to the log files (all of them) here, or submit a support ticket:

https://www.gravityforms.com/open-support-ticket/technical/

Thank you.

Thank you for the message and guidance. After enabling logging I found that saving the fields into the database takes about 4-5 seconds.

2021-11-19 7:45:02.103920 - DEBUG → GFFormDisplay::process_form(): Starting to process form (#7) submission.
2021-11-19 7:45:02.105273 - DEBUG → GFFormDisplay::process_form(): Source page number: 1. Target page number: 0.
2021-11-19 7:45:02.106101 - DEBUG → GFFormDisplay::process_form(): After validation. Is submission valid? Yes.
2021-11-19 7:45:02.106180 - DEBUG → GFFormDisplay::process_form(): Submission is valid. Moving forward.
2021-11-19 7:45:02.106236 - DEBUG → GFFormsModel::save_entry(): Saving entry.
2021-11-19 7:45:02.108102 - DEBUG → GFFormsModel::save_entry(): Entry record created in the database. ID: 7995.
2021-11-19 7:45:02.108516 - DEBUG → GFFormsModel::save_entry(): Saving entry fields.
2021-11-19 7:45:02.108572 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Bedrijfsnaam(#25 - text).
2021-11-19 7:45:02.108611 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Naam(#7 - text).
2021-11-19 7:45:02.108648 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: E-mailadres(#16 - email).
2021-11-19 7:45:02.108685 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Telefoon(#15 - phone).
2021-11-19 7:45:02.108719 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Plaats(#21 - text).
2021-11-19 7:45:02.108762 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Oppervlakte in m2(#23 - number).
2021-11-19 7:45:02.108798 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Huidige ondergrond(#18 - select).
2021-11-19 7:45:02.108855 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Vloer eigenschappen(#26.1 - checkbox).
2021-11-19 7:45:02.108881 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Vloer eigenschappen(#26.2 - checkbox).
2021-11-19 7:45:02.108906 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Vloer eigenschappen(#26.3 - checkbox).
2021-11-19 7:45:02.108931 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Vloer eigenschappen(#26.4 - checkbox).
2021-11-19 7:45:02.108954 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Vloer eigenschappen(#26.5 - checkbox).
2021-11-19 7:45:02.108992 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Omschrijving van werkzaamheden(#22 - textarea).
2021-11-19 7:45:02.109028 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Ik geef toestemming tot opname in het e-mailbestand(#31.1 - consent).
2021-11-19 7:45:02.109055 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Ik geef toestemming tot opname in het e-mailbestand(#31.2 - consent).
2021-11-19 7:45:02.109081 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Ik geef toestemming tot opname in het e-mailbestand(#31.3 - consent).
2021-11-19 7:45:02.109114 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Privacyverklaring*(#30.1 - consent).
2021-11-19 7:45:02.109141 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Privacyverklaring*(#30.2 - consent).
2021-11-19 7:45:02.109165 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Privacyverklaring*(#30.3 - consent).
2021-11-19 7:45:02.109201 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Lead van website(#29 - hidden).
2021-11-19 7:45:02.109237 - DEBUG → GFFormsModel::queue_save_input_value(): Queued field operation: Language(#32 - hidden).
2021-11-19 7:45:02.110829 - DEBUG → GFFormsModel::save_entry(): Finished saving entry fields.
2021-11-19 7:45:06.819731 - DEBUG → GFCommon::is_spam_entry(): Result from gform_entry_is_spam filter: false
2021-11-19 7:45:06.819869 - DEBUG → GFCommon::is_spam_entry(): Is submission considered spam? No.
2021-11-19 7:45:08.187398 - DEBUG → GF_Background_Process::dispatch(): Running for gf_feed_processor.
2021-11-19 7:45:08.188536 - DEBUG → GF_Background_Process::dispatch(): Unable to dispatch tasks to Admin Ajax: Nothing left to process
2021-11-19 7:45:08.188703 - DEBUG → GFFormsModel::create_post(): Starting.
2021-11-19 7:45:08.188997 - DEBUG → GFFormsModel::create_post(): Stopping. The form doesn’t have any post fields.
2021-11-19 7:45:08.189152 - DEBUG → GFFormDisplay::handle_confirmation(): Preparing confirmation (#5891e632ed71a - Standaardbevestiging).
2021-11-19 7:45:08.190398 - DEBUG → GFFormDisplay::handle_confirmation(): Executing functions hooked to gform_confirmation.
2021-11-19 7:45:08.190625 - DEBUG → GFFormDisplay::handle_confirmation(): Sending confirmation =>

Sorry i couldn’t post the link, since it’s a staging website and it protected with a username and password.

I found out disabling WP rocket helps it brings down the submission time from 6/7 seconds to 1-2 seconds. Is there anyway I can optimize this within WP rocket?

I recommend contacting WP Rocket for assistance with that. Using a solution such as that should make your site faster, not slower.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.