[wp-hackers] Post title in comments feed in 1.5.2

Michael D Adams mikea at turbonet.com
Tue Aug 16 01:45:16 GMT 2005

Or... I could think about what I'm saying/actually try things out  
before writing stuff.  Whichever people'd prefer.

It seems all of the posts involved in the comments feed get cached  
via WP_Query.  I'm not sure if any of these joins are necessary.

I'll let someone else come along and say something actually  
intelligent now :)

On Aug 15, 2005, at 6:07 PM, Michael D Adams wrote:

> Actually, there is caching for is_single comments feeds.   
> permalink_single_rss() (the title link) caches the post in  
> question.  Which makes me wonder if the is_single || is_page feeds  
> could be made more SQL efficient. (Note this isn't true on is_page  
> feeds - looks like a bug).
> That's the only place I see any caching.  Otherwise, I suppose the  
> idea is that the feed knows *exactly* what information it will  
> require, and so it doesn't need to cache anything.  It just grabs  
> what it will need: no more no less.
> Which method is actually more efficient in terms of speed on a  
> typical box (several smaller, non JOINed queries or one larger JOIN  
> query), I don't know.
> Michael
> On Aug 15, 2005, at 4:54 PM, Alex King wrote:
>> Do the posts get cached in the comments feed code? I don't think  
>> they are even identified except as the post_ID of the comment.
>> Cheers,
>> --Alex
>> http://www.alexking.org/
>> On Aug 15, 2005, at 4:37 PM, Scott Merrill wrote:
>>> My understanding of the flow is that get_the_title() will call  
>>> get_post(), and get_post will rely on the post cache.  RSS feeds  
>>> should be using the post cache in their Loops, shouldn't they?

More information about the wp-hackers mailing list