Remove all DB queries except those required for permalink resolution / rewriting

I currently know there is a posts_request hook, but am looking for a “2017” way to disable all queries(including preloading ones) except those that target and load a WP template.
I would like to take it from there and load/cache my own json data for most wp content, except those that aren’t supposed to be cached like Woo checkout pages.

Read more here: Remove all DB queries except those required for permalink resolution / rewriting

Leave a Reply

Your email address will not be published. Required fields are marked *