Opened 15 years ago
Closed 14 years ago
#17195 closed enhancement (invalid)
Lazy load $wp_query->found_posts
| Reported by: | scribu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
prettyboymp in #10964:
For the most part, the found posts result is only needed for the main loop where paging is involved, yet, most developers don't know to add the 'no_found_rows' parameter to every single WP_Query request where they don't need paging. It would require creating a magic get() method for backwards compatibility, but it can throw a deprecated warning and switch to a real getter implementation.
Change History (7)
#4
@
15 years ago
- Cc added
So, this problem is also related to default Recent Posts widget? I did not find parameter no_found_rows there and pagination is not required. I had some problems with slow queries which disappeared after removing this widget in the past...
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Similar: #15773