advanced-post-cache icon indicating copy to clipboard operation
advanced-post-cache copied to clipboard

Maybe switch to posts_pre_query

Open mjangda opened this issue 8 years ago • 2 comments

Right now, we hack our way around WP_Query to prevent it from doing the database query.

WordPress 4.6 added a new filter (https://developer.wordpress.org/reference/hooks/posts_pre_query/) that lets you hook in and skip the query by passing in the necessary post objects. This could simplify the Advanced Post Cache code quite a bit.

mjangda avatar Nov 17 '16 04:11 mjangda

I've a long flight tomorrow, which seems a perfect opportunity to work on this.

ethitter avatar Nov 29 '16 16:11 ethitter

Since this is open issue is quite old, I'm wondering the same as #12 .. Is this plugin safe to use or will I run into issues like #11?

I'm looking to maybe implement this on a multi-site (running most notably Event Espresso which makes use of extra DB tables).

youri-- avatar Mar 06 '19 13:03 youri--