• Resolved rlamb2

    (@rlamb2)


    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 the simple_job_board_init function hooked onto init.

    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!

Viewing 1 replies (of 1 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello @rlamb2,

    Thank you for writing to us.

    We have noted down your highlighted issue and will fix it in the next release of SJB.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Avoiding flush_rewrite_rules()’ is closed to new replies.