zendesk_api_client_rb icon indicating copy to clipboard operation
zendesk_api_client_rb copied to clipboard

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

Open nishajgd opened this issue 3 years ago • 1 comments

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!

nishajgd avatar Mar 13 '22 12:03 nishajgd

+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 :(

JonnyBizness avatar Apr 06 '22 03:04 JonnyBizness