View Single Post
Old 04-30-2024, 10:39 AM  
sarettah
l8r
 
Industry Role:
Join Date: Oct 2002
Posts: 13,638
Another option, if you want to avoid the iteration solution would be to pull the version 1 api every couple of minutes and store it on the server

Then whenever you want to see if the model is online you just check inside the file to see if she is there, you can use a simple substr_count() to test if the model name is in there.

The pull of the version 1 gets all models on line so you pull it via cron to load into your file, on my server it takes about 1 second to pull.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote