Skip to content
Snippets Groups Projects
Commit 38aed93b authored by Joe Oblivian's avatar Joe Oblivian Committed by lucha
Browse files

prevent mysql-proxy to cache the admin section

parent 3d3af88b
No related branches found
Tags
No related merge requests found
......@@ -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