Title: Causing timeouts
Last modified: July 14, 2023

---

# Causing timeouts

 *  [benbluef](https://wordpress.org/support/users/benbluef/)
 * (@benbluef)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/causing-timeouts/)
 * Hi,
 * This plugin is causing massive timeouts and critical errors. It is happening 
   when a user has multiple items in the cart. There are 13 discount rules enabled(
   mostly “Buy X Get Y” and a few “Product Adjustments”).
 * The site has 72 categories and 742 products.
 * Woo Discount Rules 2.6.1
   Woo Discount Rules PRO 2.6.1One user triggering the 
   errors has a cart with 76 different products (combined quantities is 645).
 * Code commonly causing the timeouts is:
   \wp-content\plugins\woo-discount-rules\
   v2\App\Helpers\Filter.phpParticularly the compareWithSku and compareWithCategories
   functions.
 * Timeouts occur when the user logs in, and when trying to view the cart or a product
   category page. Testing locally, if I disable the Woo Discount Rules plugins, 
   or disable all of the discount rules, then the timeouts stop.

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

 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-16899989)
 * Hi,
 * Thank you for reaching back to us.
 * Do you have additional conditions like subtotal for all these rules ?
 * To have a detailed check, we kindly request that you open a support ticket using
   the following link: [https://www.flycart.org/support](https://www.flycart.org/support).
   Please provide the following details in the ticket:
    - Some example screenshots of discount rules you have configured
    - Cart page screenshot indicating the issue you are facing
    - Site URL
 * By providing these details, our dedicated support engineers will be able to promptly
   assist you with appropriate solutions.
 * Thank you for your understanding and cooperation.
 * Best regards,
 * Team Flycart
 *  [memeq](https://wordpress.org/support/users/memeq/)
 * (@memeq)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-16961030)
 * plugin generate a lot of sql queries. Try with query monitor and see queries
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-16961909)
 * Hi,
 * Thank you for reaching back to us.
 * It seems that the increased SQL queries might be due to conflicts with other 
   plugins you’re using.
 * To get to the bottom of this and help you out, could you please open a support
   ticket using this link: [https://www.flycart.org/support](https://www.flycart.org/support)
   and provide us with the below details:
    - Screenshots showing the issue you are facing
    - Version of our plugin you are using
    - Site URL
 * We’re looking forward to assisting you further.
 * Thanks
   Team Flycart
 *  [jptailfashion](https://wordpress.org/support/users/jptailfashion/)
 * (@jptailfashion)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-17035334)
 * [@benbluef](https://wordpress.org/support/users/benbluef/) [@memeq](https://wordpress.org/support/users/memeq/)
   same here, did they resolve the problems?🌚 Slowing down the site crazily, I 
   only have a few categories and 500 products
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-17050837)
 * Hi [@jptailfashion](https://wordpress.org/support/users/jptailfashion/)
 * We appreciate you getting in touch with us!
 * To address the slowdown problem you’re experiencing and provide you with prompt
   assistance, could you please create a support ticket at this link: [https://www.flycart.org/support](https://www.flycart.org/support)?
   Additionally, it would be very helpful if you could provide us with the following
   information:
    - Screenshots of a few example discount rules you’ve set up. and
    - The URL of your website.
 * Your cooperation would be greatly appreciated!
 * Thanks
   Team Flycart

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

The topic ‘Causing timeouts’ is closed to new replies.

 * ![](https://ps.w.org/woo-discount-rules/assets/icon-256x256.png?rev=1977982)
 * [Discount Rules for WooCommerce](https://wordpress.org/plugins/woo-discount-rules/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-discount-rules/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-discount-rules/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-discount-rules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-discount-rules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-discount-rules/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/causing-timeouts/#post-17050837)
 * Status: not resolved