Title: Limit queries to avoid page errors
Last modified: December 16, 2025

---

# Limit queries to avoid page errors

 *  Resolved [chissco](https://wordpress.org/support/users/chissco/)
 * (@chissco)
 * [6 months ago](https://wordpress.org/support/topic/limit-queries-to-avoid-page-errors/)
 * Good afternoon
 * I’m using the plugin on my multi-suite website. The problem is that, due to the
   numerous queries the program itself makes, the page freezes with 500 and 502 
   errors. If I generate matches and open two or three screens, it generates errors.
   When the event is created with a query, each page has around 150 query monitor.
   I’d like to know if there’s any way to limit these queries so I can continue 
   using the program normally?
 * Thanks as always.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [6 months ago](https://wordpress.org/support/topic/limit-queries-to-avoid-page-errors/#post-18753489)
 * Hi [@chissco](https://wordpress.org/support/users/chissco/) ,
 * To help reduce the query load, I’d recommend first enabling a caching plugin 
   like [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) or [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/),
   which can significantly reduce database queries by serving cached versions of
   your pages. Additionally, you might want to limit the number of events, players,
   or teams displayed on each page by adjusting the “Number of results to show” 
   settings in the SportsPress configuration options (SportsPress > Settings). If
   you’re using widgets or shortcodes that display multiple league tables or player
   lists, consider reducing the number of items shown or splitting them across different
   pages.
 * Another important step is to check if there are any plugin conflicts by temporarily
   deactivating other plugins to see if the query count improves.
 * You should also ensure your hosting environment has adequate resources for a 
   multisite installation with SportsPress, as 500/502 errors often indicate server
   memory or timeout limits being reached.
 * If the issue persists, consider reaching out to your hosting provider about increasing
   PHP memory limits and max execution time, or explore upgrading to a more robust
   hosting plan that can handle the database load from SportsPress on a multisite
   network.
 * Thanks,
   Savvas
 *  Thread Starter [chissco](https://wordpress.org/support/users/chissco/)
 * (@chissco)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/limit-queries-to-avoid-page-errors/#post-18759138)
 * Good morning
 * Thank you for your messages. I’ve already been doing those kinds of tests and
   so on, but since it’s a multi-suite site, there are obviously many events and
   types of sports, which makes things very complicated. I’m consulting with you
   to see if there’s anything that actually works, because neither the caching plugins
   nor other tests have worked.
 * We’ll see how I can solve it.
 * Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flimit-queries-to-avoid-page-errors%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [chissco](https://wordpress.org/support/users/chissco/)
 * Last activity: [5 months, 3 weeks ago](https://wordpress.org/support/topic/limit-queries-to-avoid-page-errors/#post-18759138)
 * Status: resolved