Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3724 closed defect (bug) (fixed)

get_post() hits PAGE cache before POST cache

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

Description

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
20 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.