zendesk / zendesk_api_client_rb

Official Ruby Zendesk API Client
http://developer.zendesk.com/
Apache License 2.0
387 stars 183 forks source link

Search api - how to stop using cache - to fetch real data every time #490

Open nishajgd opened 2 years ago

nishajgd commented 2 years ago

when I use client.search(query: search_param, :reload => true) I get real data (not cached) after 2 mins. Is there anyway I get the search results immediately, I mean by completely avoiding cache.

Currently I use reload: true & fetch(true) on search results. This helps me get the latest data after 2 mins.

Is there anyway I can avoid waiting 2 mins, so that I get the immediate proper search result.

Thanks in advance!

JonnyBizness commented 2 years ago

+1 to this. Currently doing a search to return tickets with certain tags, getting results from the api of tickets that no longer have the tag :(