Ticket #3724 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

get_post() hits PAGE cache before POST cache

Reported by: markjaquith Assigned to: anonymous
Priority: low Milestone: 2.2
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc:

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

01/31/07 03:43:04 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

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