WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 15 months ago

#22176 new enhancement

Cache the results of the posts_request_ids query

Reported by: ryan Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.4.2
Component: Cache API Keywords:
Focuses: Cc:

Description (last modified by ryan)

We are to the point where we could replace the advanced post cache plugin with something in core that is far simpler. We're most of the way there since introducing the split query. And with #22024 we have a good way of doing per-blog cache invalidation for classes of objects, which would be needed by this. Leveraging wp_cache_get_multi() as suggested in #22174 would provide a complete replacement for the adv post cache plugin. http://plugins.svn.wordpress.org/advanced-caching/trunk/advanced-caching.php

Attachments (3)

22176.diff (1.3 KB) - added by ryan 18 months ago.
The gist
22176.2.diff (2.7 KB) - added by ryan 18 months ago.
found_posts caching
22176.3.diff (4.7 KB) - added by ryan 18 months ago.
Add context arg to clean_post_cache(). Don't update last_changed for certain contexts.

Download all attachments as: .zip

Change History (10)

comment:1 scribu18 months ago

  • Cc scribu added

ryan18 months ago

The gist

comment:2 ryan18 months ago

  • Description modified (diff)

ryan18 months ago

found_posts caching

comment:3 batmoo18 months ago

  • Cc batmoo@… added

comment:4 johnbillion18 months ago

  • Cc johnbillion added

comment:5 ryan18 months ago

Related: #15565

ryan18 months ago

Add context arg to clean_post_cache(). Don't update last_changed for certain contexts.

comment:6 nacin18 months ago

A parent deletion could hypothetically change a query that is based on post_parent, or eventual post_parent_in / not_in, child_of, exclude_tree query variables.

comment:7 aaroncampbell15 months ago

  • Cc aaroncampbell added
Note: See TracTickets for help on using tickets.