[wp-hackers] Freezing $now to increase query cache benefit

David House dmhouse at gmail.com
Fri Jan 6 11:28:20 GMT 2006


On 06/01/06, Mark Jaquith <mark.wordpress at txfx.net> wrote:
> So, I wrote a plugin to do just that.  It updates an option with the
> date/time of the most recent published post (updated on edit, save,
> publish).

Could you use MAX(post_date) instead of that extra query? I'm not too
sure what functions work on datetimes...

--
-David House, dmhouse at gmail.com, http://xmouse.ithium.net


More information about the wp-hackers mailing list