• Resolved markus9312

    (@markus9312)


    So sometimes I have issues where my form won’t submit. Then I clear the cache and it works for a while. Until someone reaches out to me telling me that the form isn’t working.. Whenever I disable Litespeed Cache it seems like it works as it always should.

    I’m using AJAX for my form. It can be found in the footer of all pages, so I can’t just disable that specific page in the Litespeed settings. Any suggestions on how I can set up Litespeed Cache to not intefere with the form submission?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author philkurth

    (@philkurth)

    Hi @markus9312

    Generally, the solution is to disable page caching for the specific page in question but I understand you are using the form on every page.

    I’m not familiar with how or what will be getting cached in this scenario but it sounds like a question for your hosting support as they’ll be able to see the requests and will have access to your Litespeed config.

    If it’s the AJAX request that is being cached, they should be able to target and exclude that.

    When the form fails to submit, what do you see? Are there any errors in the console that seem relevant?

    Cheers,
    Phil

    Thread Starter markus9312

    (@markus9312)

    Hi again. So the support helped me find a potential solution to this.

    https://docs.litespeedtech.com/lscache/lscwp/admin/#turning-wordpress-shortcodes-into-esi-blocks

    Currently I’m using the advanced form block. Do you reckon if I change this to a esi shortcode it would work better? They mention some potential issues TTL but I don’t really understand the issue at hand so I don’t know if it would be of any concern..

    Plugin Author philkurth

    (@philkurth)

    Howdy Markus,

    Going by what their document mentions, it sounds like it should work OK. That said, it isn’t something I’ve tested so I’m not sure on how well it will work.

    What I can say is that I haven’t had anyone write in mentioning this in the past so it’s either working fine for other people or people aren’t hitting the same issue.

    I’d say give the shortcode a shot and see what happens. If you get a moment, would you mind updating me here so I’ll know whether or not ESI blocks are compatible?

    Cheers,
    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with Litespeed Cache?’ is closed to new replies.