[wp-trac] Re: [WordPress Trac] #2859: Databasequeries of a static page using permalinks

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 26 08:41:19 GMT 2006


#2859: Databasequeries of a static page using permalinks
--------------------------+-------------------------------------------------
 Reporter:  skydrak       |        Owner:  markjaquith
     Type:  defect        |       Status:  assigned   
 Priority:  normal        |    Milestone:             
Component:  Optimization  |      Version:  2.0.3      
 Severity:  normal        |   Resolution:             
 Keywords:  queries page  |  
--------------------------+-------------------------------------------------
Changes (by markjaquith):

  * component:  Administration => Optimization
  * version:  => 2.0.3
  * status:  new => assigned
  * owner:  anonymous => markjaquith

Comment:

 If this is happening on every page load, that's because you've enabled
 WP's file system object cache, but something is wrong with the file
 permissions, so it can't write the data to the cache.  It's normal for
 this to happen once, to populate the cache.

 Still, this method of finding the correct subpage won't scale well, so it
 should probably change.  Maybe we just need to write the fullpath info to
 the page, or store it in post meta.  There has to be a better way that
 querying (whether from the cache or from the DB) every post and looping
 through them looking for the right one.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2859>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list