Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
noblogs-wp
Commits
7eea1255
Commit
7eea1255
authored
Sep 18, 2011
by
Joe Oblivian
Committed by
agata
Oct 17, 2019
Browse files
prevent mysql-proxy to cache the admin section
parent
166fc083
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-content/db.php
View file @
7eea1255
...
...
@@ -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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment