Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 17Mar 17 Community Expert Just running this end point with the default options takes 6 seconds on my forum:https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/GETindexThis behaves the same with a C++ desktop application, or with a PHP script running on the same server.A little debugging yields this information:time_namelookup: 0.144395stime_connect: 0.238170stime_appconnect: 0.449827stime_pretransfer: 0.449919stime_redirect: 0.000000stime_starttransfer: 5.473372s----------time_total: 6.230231sIs this typical? Any ideas why this might be happening? I have not upgraded to version 5 yet. Edited March 17Mar 17 by Interferon
March 18Mar 18 Author Community Expert It seems highly dependent on the number of results returned. Just using an API key and a browser, when perPage is set to 1 I estimate it takes about one second to return. With perPage set to 100 it takes about 23 seconds.But when I am browsing through the web interface, the page load times are very fast. Each page of 25 results loads in about a second or less. Edited March 18Mar 18 by Interferon
March 18Mar 18 Community Expert It will very much depend on your server. However I would say, you are quite a few versions behind there. So the first thing you need to do is update your site to the latest release
2 hours ago2 hr Author Community Expert Solution The upgrade from 4.2 to 4.7 seems to have fixed this. API responses seem to be about the same speed as the rest of the site now.