• the calculation stopped working, also when i do a force calculation.
    Am getting the Too Many Requests error(never had that before).
    Hope you can help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author AntoineH

    (@antoineh)

    This probably means your web host has some sort of rate limiting. Shared hosts often have this to protect the resources on the server from being ‘claimed’ by one website.

    Best option is to reach out to your web host to find out if they are willing to give you some extra room. The rate limit is a good measure when your website is constantly creating requests, but since a calculation usually doesn’t happen that often, maybe they can put the calculation script on an allow list.

    Sometimes this means you’ll have to pay a bit more for a ‘bigger’ setup. Because especially the cheap web hosts can be this cheap because they can put a lot of websites on a small pack of resources.

    Another option is to play around with the step size parameters in your wp-config.php (see below). A bigger value means less requests, but with the drawback that it takes longer to complete (which may cause the request to time out on the server). Maybe you can find a value that will work for your situation. But, I think this will only buy you a bit more time before the problem will appear again (if your data grows in size).

    Add this to your wp-config.php and change the numbers:

    define( 'FOOTBALLPOOL_CALC_STEPSIZE_MATCH', 400 );
    define( 'FOOTBALLPOOL_CALC_STEPSIZE_QUESTION', 400 );
    define( 'FOOTBALLPOOL_CALC_STEPSIZE_SCORE', 400 );
    define( 'FOOTBALLPOOL_CALC_STEPSIZE_RANKING', 400 );

    Last option: delete old matches or inactive users. But this of course has impact on your ranking (deleted matches will no longer be part of your ranking).

    Thread Starter deheugden

    (@deheugden)

    Many thanks for the reply. What kind of rate limit do you mean and how can i prove that to the isp?

    • This reply was modified 2 years, 6 months ago by deheugden.
    Plugin Author AntoineH

    (@antoineh)

    More info here.

    Thread Starter deheugden

    (@deheugden)

    Ok, but what kind of traffic is the poolapp gemerating that is causing this?

    Plugin Author AntoineH

    (@antoineh)

    The total calculation is cut into smaller pieces and every calculation step does an AJAX call to the server.

    Thread Starter deheugden

    (@deheugden)

    last question(i hope), this never happened before and i dont have any old matches from earlier seasons. So there shouldnt be any old info available, am i correct?

    • This reply was modified 2 years, 6 months ago by deheugden.
    Plugin Author AntoineH

    (@antoineh)

    That it didn’t happen before doesn’t really tell me much. Your data set can still be larger than it was (with every extra match, question, custom ranking and/or user more calculation steps may be needed). And also your web hosting company could have made changes to their infra.

    Thread Starter deheugden

    (@deheugden)

    I contacted the hosting provider, they asked me which resources i need. What can is answer them?

    Plugin Author AntoineH

    (@antoineh)

    I don’t know. Seriously, I am not a sysadmin and also don’t know your configuration. So, even if I wanted to help, I wouldn’t be able to. You’ll have to figure this out with your provider.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Too Many Requests’ is closed to new replies.