• 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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Subhra Jyoti Bhuyan

    (@subhra44)

    Issue location.

    Location: includes/class-wc-zipmoney-payment-gateway-util.php
    Line no.: 189
    Plugin Version: 2.0.9

    Plugin Author Zip Co Limited

    (@zipmoney)

    Hi @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

    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

    (@zipmoney)

    Hi @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.