Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1063 closed defect (bug) (fixed)

Cache the max number of pages

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: Optimization Keywords:
Focuses: Cc:


posts_nav_link() and next_posts_link() perform queries to determine the max number of pages. Multiple calls to these functions result in multiple queries. Let's reduce this to one query by caching the max number of pages.

Change History (2)

#1 @ryan
19 years ago

  • Patch set to No

#2 @ryan
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.