• Resolved Eric

    (@ericcodrongmailcom)


    Hello,

    On the homepage of the site https://weddings-and-events.cdvillas.com, the “Locations” field of the search form is a “select” whose “option”s are generated on the fly after an Ajax request.
    When we enable the LiteSpeed ​​cache and clear it, everything works fine for a few hours, then a problem occurs that prevents the field from being built, which breaks the form.

    If I clear the cache again, everything works for a few hours before the problem comes back.

    I added “admin-ajax.php” in “Cache > [4] Exclude > Do Not Cache URIs”, but it didn’t change anything.

    There are two things I don’t understand:

    • What causes this problem?
    • Why does the problem only occur after a few hours?

    Do you know what is happening and how I can prevent this from happening?

    Thank you,

    Eric

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    this sounds like a nonce issue , it works for few hours because nonce token has certain valid life time , and it stops working after it reaches expiration time

    please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    and meanwhile, please search keyword es_get_locations in the plugin that responsible for that selection field and share the result, you should see few lines mentioned keyword the nonce

    Thread Starter Eric

    (@ericcodrongmailcom)

    Report number: KATHNEEM

    The plugin contains this line of code:

    'nonce_locations' => wp_create_nonce( 'es_get_locations' ),

    Is is what we are looking for?

    Plugin Support qtwrk

    (@qtwrk)

    yes, now please try this , go to Cache -> ESI -> enable ESI, and add es_get_locations into ESI nonce list

    save and purge all , see how it goes

    Hi, I have a similar problem in https://milenanoventa.it and I think is better to continue this thred (tell me if is better to open a new one)
    In the lower part of the page there’s a form by https://wordpress.org/plugins/getwid/ -> https://getwid.getmotopress.com/blocks/contact-form-block/
    I think is the same problem presented in this thread.. I don’t know how to identify the corresponding object to “es_get_locations”…
    Could you help me?

    Report Number: EZVDWULE

    Thank you
    g

    • This reply was modified 1 year, 2 months ago by mr_lars.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘AJAX/Javascript issue when the cache is enabled’ is closed to new replies.