• With litespeed cache on and JS set to “delayed” and CF7 with Recaptcha on, forms won’t submit.

    I have tried listing all the possible js files in the deferred exclusions but was unable to get it to work. It also reloaded the page with a parameter rather than submitting via ajax. Does any one have the combination of excluded files so the forms still work (with RECAPTCHA) via Ajax with JS delayed?

Viewing 1 replies (of 1 total)
  • masgan0607

    (@masgan0607)

    Try add this code


    defined( 'DOING_AJAX' );
    add_filter( 'litespeed_can_optm', '__return_false' );

    into functions.php

    • This reply was modified 3 years ago by masgan0607.
Viewing 1 replies (of 1 total)
  • The topic ‘Litespeed Cache and CF7’ is closed to new replies.