advanced-post-cache
advanced-post-cache copied to clipboard
Maybe switch to posts_pre_query
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.
I've a long flight tomorrow, which seems a perfect opportunity to work on this.
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).