[wp-trac] [WordPress Trac] #10913: optimizations are much needed in the FTP filesystem

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 6 12:42:30 UTC 2009


#10913: optimizations are much needed in the FTP filesystem
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  dd32 
     Type:  defect (bug)       |      Status:  new  
 Priority:  normal             |   Milestone:  2.9  
Component:  Filesystem         |     Version:  2.8.4
 Severity:  normal             |    Keywords:       
-------------------------------+--------------------------------------------
 I added some extra tracking in the class to understand why it was timing
 out on a customer's server. the last message is what verbose mode outputs:

 {{{
 exists(/home/dietp4fn/public_html/)
 is_file(/)
 exists(/)
 is_dir(/)
 is_file(/)
 exists(/)
 is_dir(/)
 is_dir(/wp-includes)
 exists(/home/dietp4fn/public_html/wp-content)
 is_file(/)
 exists(/)
 is_dir(/)
 Found /wp-content
 }}}

 I suspect that is_file(), is_dir(), and exists() could all use a cache,
 and that is_dir() could use an optimization along the lines of:

 {{{
 if ( preg_match("/\.(php|css|js|txt|html|je?pg|png|gif|po|pot|mo)$/i",
 $file )
   return true;
 }}}

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


More information about the wp-trac mailing list