[wp-hackers] get_post() not fetching from post cache after update_post_caches()
otto at ottodestruct.com
Fri Oct 2 13:49:06 UTC 2009
You shouldn't need to call update_post_caches, as the
WP_Query->query() function does that automatically anyway. query.php,
line 2359 (or thereabouts).
As for the rest, I don't know. The get_post function should indeed
check the cache first.
Call global $wp_object_cache; $wp_object_cache->stats(); to see the
contents of the cache before and after each call. Might help you with
Sent from Memphis, TN, United States
On Thu, Oct 1, 2009 at 11:47 AM, William Canino
<william.canino at googlemail.com> wrote:
> I'm coding a Yet-Another-Clickable-List-of-Posts-With-Something-in-Common.
> The amount of SQL queries my current code is making is driving me
More information about the wp-hackers