Opened 19 years ago
Closed 16 years ago
#4094 closed enhancement (invalid)
get_pages: add query hooks, wpcache argument hooks
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Template | Keywords: | needs-patch get_pages hook |
Focuses: | Cc: |
Description
To support plugins which want to do query filtering and/or use alternate wp_cache id and group (Note that the existing results filter already lets plugins have their way with results set. This just lets them do it more efficiently).
- Add wpcache_id and wpcache_group filters
- Add join, where, request filters
- apply existing results filter prior to cache update
Attachments (1)
Change History (14)
#5
@
19 years ago
I've come to some clearer thinking on the results filter placement.
If the cache retrieval is run through the same filter, there is no need to filter prior to cache storage. It seems safer to leave the actual cache storage unfiltered so it's not invalid after a filtering plugin is removed.
That means get_pages is the one that should change.
In fact, there is a defect in the current code:
The current placement of the post-query "get_pages" filter causes get_page_children contributions to be filtered on cache retrieval, but not after query. End user could get a different answer the first time they ask.
also posted tickets for get_bookmarks(#4095) and get_categories(#4096)