Skip to content
Snippets Groups Projects
Commit 7eea1255 authored by Joe Oblivian's avatar Joe Oblivian Committed by agata
Browse files

prevent mysql-proxy to cache the admin section

parent 166fc083
Branches
Tags
Loading
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment