Commit f3e72022 authored by Vasili Pascal's avatar Vasili Pascal

Update index-wp-redis.php

PHP Notice:  Constant WP_USE_THEMES already defined in /var/www/sites/webdirect.me/docroot/index-wp-redis.php on line 27.
parent f914fcb9
......@@ -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