How bad is flush_rules() on init hook?
It sounds like you misunderstand how to add rewrite rules as your structure is relatively common and should not require flushing the rules on every page load. The impact depends on your set of rewrite rules, and the codex is somewhat outdated and I don’t think it is as bad as it used to be … Read more