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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: