{"id":7348343,"date":"2016-05-04T16:03:22","date_gmt":"2016-05-04T16:03:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/insanely-slow\/"},"modified":"2016-08-31T17:15:46","modified_gmt":"2016-08-31T17:15:46","slug":"insanely-slow","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/insanely-slow\/","title":{"rendered":"Insanely Slow"},"content":{"rendered":"<p>Even on the demo server, a typical search takes 4-5 seconds, which is way too long for a live search. <\/p>\n<p>This is a great feature, but not quite as useful as it could be. <\/p>\n<p>One thing that could be done to improve performance is to wrap the ajax_search_products function in get\/set transient &#8211; this gives nearly instant results for commonly searched things. I set the transient expiration to 6hrs, but transients could be purged each time products are added or updated, and you could add the caching option in your options panel.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/yith-woocommerce-ajax-search\/<\/p>\n","protected":false},"template":"","class_list":["post-7348343","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7348343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7348343\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7348343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}