Commit 853a5719 authored by Joe Oblivian's avatar Joe Oblivian Committed by agata

prevent mysql-proxy to cache the admin section

parent 2c343021
......@@ -872,6 +872,11 @@ class hyperdb extends wpdb {
$statement_after_query = $this->run_callbacks( 'statement_after_query' );
$query_for_log = $query;
// A/I: prevent mysql-proxy to cache the admin section
if (strpos($_SERVER['REQUEST_URI'], '/wp-admin/') !== false) {
$query .= ' /* NO CACHE */';
}
$this->timer_start();
if ( $statement_before_query ) {
$query_for_log = "$statement_before_query; $query_for_log";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment