[wp-trac] Re: [WordPress Trac] #8874: wp_list_pages consume a lot
of memory
WordPress Trac
wp-trac at lists.automattic.com
Sat May 9 18:42:14 GMT 2009
#8874: wp_list_pages consume a lot of memory
------------------------------------+---------------------------------------
Reporter: horaciod | Owner: anonymous
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.8
Component: Optimization | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+---------------------------------------
Changes (by Denis-de-Bernardy):
* keywords: has-patch => has-patch dev-feedback
Comment:
I *think* that this:
{{{
wp_cache_set( 'get_pages', $cache, 'posts' );
}}}
... is needed.
what is missing and may not necessarily be needed is:
{{{
update_post_cache($pages);
}}}
that being said, adding such a call will tremendously speed things up when
generating permalinks, since it saves one query per missed cache hit.
maybe there is a need for an extra cache group, for use by permalinks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8874#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list