• I am suffering from the evenbrite api plugin from last 2 weeks, i have setup all the thing, now events that i have updated in eventbrite.com is not coming immediately to my wordpress site.

    when i delete the keyring connection and add new connection in keyring it will work but as i have old connection that will not work so far.

    Or if i am wrong then please let me know the time of syncing of eventbrite to my site.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • there isn’t an official way to force a new api call to update the cached events BUT there is an unused force parameter in the api’s request function so I added a force parameter to class-eventbrite-query and passed it down into the api request.

    First I added a “$force” parameter to the class-eventbrite-query constructor and to the get_posts() function, overwrote the query() function from WP_QUERY to pass the $force parameter to get_posts, passed $force into the calls to get_event, get_user_owned_events, and do_event_search which I think all already accept a force parameter. Then, in class-eventbrite-manager, I call flush_transients() to cull the cache when force is true before making a new api request. Then, I added a button that refreshes the events page using a forced Eventbrite_Query that displays for logged in users. It still takes 5-10 minutes after event creation to force the api but it’s been pretty functional. This works a bit better then setting the cache duration to 0 since eventbrite only allows 1000 requests per day (i think)

    Hi @maximusgroves, can you show your code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event Is not coming immediately’ is closed to new replies.