Skip to content
Snippets Groups Projects
Commit 4ed79941 authored by Benjamin Adams's avatar Benjamin Adams
Browse files

Merge pull request #9 from vsilent/patch-1

Update index-wp-redis.php
parents f914fcb9 f3e72022
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,11 @@ $secret_string = "changeme";
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
if(!defined('WP_USE_THEMES')) {
define('WP_USE_THEMES', true);
}
define('WP_USE_THEMES', true);
$current_url = str_replace(array("?refresh=${secret_string}","&refresh=${secret_string}"), '', "http://${_SERVER['HTTP_HOST']}${_SERVER['REQUEST_URI']}"); //clean up the URL
$redis_key = md5($current_url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment