Cache specific SQL queries
-
Hi Marko,
great plugin! Really what I wanted.
I have a specific question about MySQL caching:I have a page which ahs a lot of components and plugins activated.
I see in Query Monitor, that on nearly every page load, some specific repetitive SQL queries are ran by those plugins, which ALWAYS return the same results (I can assure that because they simply read configurations done by the admin and we never change those parts).My idea is:
Log the sql queries which are ran, identify them by md5’ing the SQL string, count how often than ran, and than cache specific queries, i.e. the results of $wpdb->query()/get_results().Can the plugin already do so?
I mean, I have already written my own code which logs all wpdb-queries (SAVEQUERIES) with md5 and run-counter.I just do not know where to hook into to make sure that calls to wpdb are avoided because results are taken from a file-cache…
Seems this can be done only using wpdb dropin, but W3TC is using this already. So is it possible to achieve that functionality using W3TC?
Thanks
- The topic ‘Cache specific SQL queries’ is closed to new replies.