[wp-trac] [WordPress Trac] #17276: custom post type problems needs addressed

WordPress Trac wp-trac at lists.automattic.com
Sun May 1 10:35:48 UTC 2011


#17276: custom post type problems needs addressed
-------------------------+------------------------------
 Reporter:  squeeky      |       Owner:  squeeky
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------

Comment (by scribu):

 I did a quick test - in wp-includes/post.php within the "function
 register_post_type" I merely dropped (inserted) the following line :

 {{{
 $wp_rewrite->flush_rules(false);
 }}}

 That would mean that flush_rules() is called on every page load.
 flush_rules() exists because rewrite rules are cached, so that they don't
 have to be generated on every page load, since they can take a long time.
 I hope you see the contradiction.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17276#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list