Load an url with minimal/no DB queries

It is excruciatingly painful to deeply customize WordPress load process.

It’s not quite clear if your requirements here are performance related or tied to soemthing else.

For your question as stated there would be about following approaches (madness ascending):

  • get rid of actual code causing unwanted queries, altogether or via techniques like caching
  • customize the load process in runtime, such as using mu-plugin to control which plugins are loaded
  • build a custom SHORTINIT endpoint and load the required minimum of WP core in “manual” way with your own code

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)