Performance issue
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Performance issue’ is closed to new replies.