[wp-trac] Re: [WordPress Trac] #3273: Post Meta caching mechanism
leads to unnecessary queries
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 22 08:00:04 GMT 2006
#3273: Post Meta caching mechanism leads to unnecessary queries
---------------------------------+------------------------------------------
Reporter: markjaquith | Owner: markjaquith
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.1
Component: Optimization | Version: 2.1
Severity: normal | Resolution:
Keywords: post_meta has-patch |
---------------------------------+------------------------------------------
Changes (by markjaquith):
* keywords: post_meta => post_meta has-patch
* status: new => assigned
* component: Administration => Optimization
* type: defect => enhancement
Comment:
Mmm, I love posts that have more red than green.
This eliminates some seriously redundant code, and reduces the number of
queries made fetching post meta.
I found another issue that is fixed in my patch: subsequent loops would
destroy earlier postmeta cache entries. So if the loops had entries in
common, the meta for those common entries was being fetched, destroyed,
and fetched again. Bad.
Please review and test.
--
Ticket URL: <http://trac.wordpress.org/ticket/3273#comment:1>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list