Commit 4ed79941 authored by Benjamin Adams's avatar Benjamin Adams

Merge pull request #9 from vsilent/patch-1

Update index-wp-redis.php
parents f914fcb9 f3e72022
......@@ -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);
......
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