Avoiding flush_rewrite_rules()
-
Hey, so in trying to troubleshoot some spikes in resource usage on one of my sites, I noticed that your plugin is calling
flush_rewrite_rules()
on every page load, forcing the system to regenerate the rules that often.It’s in
simple-job-board/includes/posttypes/class-simple-job-board-post-type-jobpost.php
, in thesimple_job_board_init
function hooked ontoinit
.I can’t see any reason in that particular function that would need the rewrite rules flushed just before adding some filters, so maybe it was left in from testing or something?
Either way, if dropping that or moving it to a more appropriate conditionally-run place in the code is something you can consider working into your next update, that’d be awesome.
Thanks!
- The topic ‘Avoiding flush_rewrite_rules()’ is closed to new replies.