Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aphotrax

    (@vlijmen)

    Hi,

    That is quite coincidence that your are asking this now. Earlier this week someone else came up with this question. While I thought it would be possible to return all details with one request to the API it can only return 50 monitors at a time.

    I will see this week if I can resolve this by running the request multiple times and combine the results so you will see all monitors. Due to the setup of the plugin it will take some time to solve this issue for all the options but I will do my best to solve this ASAP.

    Sorry for the inconvenience and will be continued!

    Regards,
    Niels

    Thread Starter Razorfrog Web Design

    (@razorfrog)

    I actually edited an older version of your plugin (1.3.3) to loop through three times (up to 150 monitors) pretty easily:

    $offset = 0;
    for ($i = 1; $i <= 3; $i++) {
    $url = “https://api.uptimerobot.com/getMonitors?apiKey=&#8221;. $apiKey . “&customUptimeRatio=”.substr($GetUptimes, 0, -1).”&format=xml&monitors=”.get_option(‘uptime_robot_nh_monitors’).”&offset=”.$offset;

    // Table Display Code

    $offset = $i*50;

    Something like that might work well for you.

    Plugin Author Aphotrax

    (@vlijmen)

    Hi,

    That would have been indeed an easy solution before the recente updates. Unfortunately it’s not that easy anymore since the caching and ordering has been added as features. Combine the loop and making sure the caching still work will be a bit harder Im afraid. (Besides that your solution doesn’t take into count that there might be a custom shortcode.)

    I will do my best to solve it but I can’t promise I can make time for that this week.

    Plugin Author Aphotrax

    (@vlijmen)

    Resolved from V2.0

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only loads 50 sites’ is closed to new replies.