[wp-hackers] post processing weirdness

Scott Merrill skippy at skippy.net
Sat Jun 25 19:37:24 GMT 2005


Scott Merrill wrote:
> On Sat, 25 Jun 2005 11:31am, I wrote:
>  > I made the change you suggested, and immediately refreshed the index
>  > page of my blog to see if there were any effects.  Sure enough, the
>  > load of my index page went from generating 50 queries in 0.4 seconds,
>  > to 251 queries in 11.7 seconds.  The time is mostly irrelevant, but
>  > the high number of queries concerned me.

  ...

> I didn't experience the same problem with the number of queries, but all 
> my permalinks _did_ break, reverting to the current date with no post 
> title.  =(

I made the following change to wp-includes/template-functions-links.php, 
at line 40:
         if (0 == $id) {
                 global $post;
         } else {
                 $post = & get_posts($id);
         }

That fixed my permalinks; and I'm still not seeing an increase in queries.

-- 
skippy at skippy.net | http://skippy.net/

gpg --keyserver pgp.mit.edu --recv-keys 9CFA4B35
506C F8BB 17AE 8A05 0B49  3544 476A 7DEC 9CFA 4B35


More information about the wp-hackers mailing list