• Resolved gramir

    (@gramir)


    Good day

    We use YITH Event Tickets Plugin with a shortcode (check in form page) for Ticket Check In. The check in process does not show updates, when Object Cache of Litespeed Cache Plugin is activated. When a ticket is checked in via the check in shortcode form and the ticket list is updated (either via ajax, or reload of the page), the check in is not reflected in the ticket list on the frontend, or backend (tickets in wp admin). When the button “Purge All – Object Cache” from the LS Cache Plugin is pressed the page reloads (front- and backend) and the list shows the correct data.

    The API requests in question are:
    – file script-tickets-shortcodes.js, line 168 (/wp-json/yith_event_tickets_for_woocommerce/v1/change_ticket_status/)
    – file script-tickets-shortcodes.js, line 207 (/wp-json/yith_event_tickets_for_woocommerce/v1/change_ticket_status/)
    – file script-tickets-shortcodes.js, line 303 (/wp-json/yith_event_tickets_for_woocommerce/v1/search_ticket/)
    – file script-tickets-shortcodes.js, line 359 (/wp-json/yith_event_tickets_for_woocommerce/v1/load_tickets/)

    Tested actions to try to resolve the issue, without success:

    1. Setting Litespeed Cache->Cache->Cache REST API to OFF
    2. Adding the page url with the shortcode (/festival-check-in/) to Litespeed Cache->Excludes->Do Not Cache URIs
    3. Adding the before mentioned endpoints to Litespeed Cache->Excludes->Do Not Cache URIs

    Any help is greatly appreciated, thank you. Thank you.

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

    (@qtwrk)

    please go to Cache -> Object Cache -> Do Not Cache Groups , add the object group from your plugin to this field

    Thread Starter gramir

    (@gramir)

    Thank you for the quick response. Any advice on how to find out the what the object group is?

    Plugin Support qtwrk

    (@qtwrk)

    please try text search on plugin file , keyword wp_cache_add or wp_cache_set , the 3rd argument should be the group name.

    Thread Starter gramir

    (@gramir)

    Ok, thanks. The plugin doesn’t make use of these functions. The plugin uses get_post_status which then returns cached data. I could have added clean_post_cache( $post ) for the posts in question, but I can’t find a hook for that in the plugin. I added “posts” to the excluded groups for now, which seems to do the trick. I suppose this excludes all post types from the cache, right? Any way to only exclude certain post types?

    Plugin Support qtwrk

    (@qtwrk)

    well , not from my very limited knowledge : (

    Thread Starter gramir

    (@gramir)

    Ok, thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘API Requests of YITH Event Tickets Caching Issue’ is closed to new replies.