flush_rewrite_rules() on every init
-
Hey, I’m trying to track down some performance issues in a site I manage and one that I’ve found is that the
init
hook from yourjobpost
CPT is callingflush_rewrite_rules()
every time it runs, which I believe would be just about every page load.I know that tends to be a bit of an expensive operation, particularly on larger sites with more plugins that add in more CPTs — any chance that could be refactored a little bit to avoid that running so often? It speeds up the dashboard considerably, especially when you take the editor and all of its AJAX requests into account.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘flush_rewrite_rules() on every init’ is closed to new replies.