[wp-trac] [WordPress Trac] #3724: get_post() hits PAGE cache before
POST cache
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 31 03:40:28 GMT 2007
#3724: get_post() hits PAGE cache before POST cache
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.2
Component: Administration | Version: 2.1
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Every call to something like {{{current_user_can('edit_post', $ID)}}}
(once for each post in default theme) calls {{{get_post()}}}, which checks
the PAGE cache before checking the POST cache.
This causes unnecessary cache misses. We should assume that they're using
the function correctly and try hitting the POST cache first.
--
Ticket URL: <http://trac.wordpress.org/ticket/3724>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list