Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#3724 closed defect (bug) (fixed)

get_post() hits PAGE cache before POST cache

Reported by: markjaquith's profile markjaquith Owned by:
Milestone: 2.2 Priority: low
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: Cc:


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.

Change History (1)

#1 @markjaquith
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4847]) get_post() should check post cache before page cache. fixes #3724

Note: See TracTickets for help on using tickets.