Title: Performance issue
Last modified: January 24, 2019

---

# Performance issue

 *  [Subhra Jyoti Bhuyan](https://wordpress.org/support/users/subhra44/)
 * (@subhra44)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/performance-issue-23/)
 * There is a large amount of write I/O is hitting the wp_options table because 
   of flush_rewrite_rules() which is being called very frequently. The plugin seems
   to trigger a flush on every init() which is an issue.
 * flush_rewrite_rules() should never be called on init() hook. Below is a line 
   from [WordPress documentation](https://codex.wordpress.org/Function_Reference/flush_rewrite_rules#Usage).
 * **_Flushing the rewrite rules is an expensive operation, there are tutorials 
   and examples that suggest executing it on the ‘init’ hook. This is bad practice.
   It should be executed either on the ‘shutdown’ hook, or on plugin/theme (de)activation._**
 * Let me know if I can help you in fixing this issue.
    -  This topic was modified 7 years, 3 months ago by [Subhra Jyoti Bhuyan](https://wordpress.org/support/users/subhra44/).

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

 *  Thread Starter [Subhra Jyoti Bhuyan](https://wordpress.org/support/users/subhra44/)
 * (@subhra44)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/performance-issue-23/#post-11126968)
 * Issue location.
 * Location: includes/class-wc-zipmoney-payment-gateway-util.php
    Line no.: 189 
   Plugin Version: 2.0.9
 *  Plugin Author [Zip Co Limited](https://wordpress.org/support/users/zipmoney/)
 * (@zipmoney)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/performance-issue-23/#post-11128058)
 * Hi [@subhra44](https://wordpress.org/support/users/subhra44/),
 * Thank you very much for sending this suggestion and information through!
 * We will look into this asap and let you know when we have an update.
 * Will also let you know if we need anything else!
 * Thanks and regards.,
    Team Zip
 *  [embercide](https://wordpress.org/support/users/embercide/)
 * (@embercide)
 * [7 years ago](https://wordpress.org/support/topic/performance-issue-23/#post-11479961)
 * I’m currently going through the process of getting Zip approved for our online
   store and these issues concern me. Has this been resolved?
 *  Plugin Author [Zip Co Limited](https://wordpress.org/support/users/zipmoney/)
 * (@zipmoney)
 * [7 years ago](https://wordpress.org/support/topic/performance-issue-23/#post-11484338)
 * Hi [@embercide](https://wordpress.org/support/users/embercide/),
 * Unfortunately we have not been able to resolve these issues yet as we have had
   other, more urgent work that required our plugin teams resources.
 * We are however very aware of this issue and have included this as part of a bigger
   piece of work we are currently planning for our woo extension, which is due to
   be completed in the coming months.
 * Regards,
    Zip Plugins Team

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

The topic ‘Performance issue’ is closed to new replies.

 * ![](https://ps.w.org/zipmoney-payments-woocommerce/assets/icon-256x256.png?rev
   =2583821)
 * [zipMoney(Zip Co) Payments Plugin for WooCommerce](https://wordpress.org/plugins/zipmoney-payments-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Zip Co Limited](https://wordpress.org/support/users/zipmoney/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/performance-issue-23/#post-11484338)
 * Status: not resolved