Opened 20 years ago
Closed 20 years ago
#1063 closed defect (bug) (fixed)
Cache the max number of pages
Reported by: | ryan | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5 |
Component: | Optimization | Keywords: | |
Focuses: | Cc: |
Description
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)
Note: See
TracTickets for help on using
tickets.
http://trac.wordpress.org/changeset/2422