WP_CACHE_KEY_SALT useless?
-
I’ve written a script to enable wp-redis for all my WP installations, on my cPanel server.
for i in $(ls --hide='system' /var/cpanel/users/); do find /home/$i/public_html -name 'wp-admin' -print0 | while IFS= read -r -d $'\0' line; do cd $line/../; randstring=$(< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-32};echo;); echo "define ('WP_CACHE_KEY_SALT', '$randstring:');" >> wp-config.php; PHP_PATH="/opt/cpanel/ea-php56/root/usr/bin/php" sudo -H -u$i $PHP_PATH /home/wp core update-db; sudo -H -u$i $PHP_PATH -d "disable_functions=NULL" /home/wp plugin install wp-redis; sudo -H -u$i $PHP_PATH -d "disable_functions=NULL" /home/wp plugin activate wp-redis; rm -rfv wp-content/object-cache.php sudo -H -u$i $PHP_PATH -d "disable_functions=NULL" /home/wp redis enable; sudo -H -u$i $PHP_PATH -d "disable_functions=NULL" /home/wp redis info; done; done
And after all went well, I realized sites started randomly redirecting to each other.
Even though this random string is being added to each wp-config.phpdefine ('WP_CACHE_KEY_SALT', 'xxxxxxxxxxxxxxxxxxxxxx:');
With another plugin, redis-cache, this works perfectly, but with that plugin, I have problem with “You’re not authorized to view this page” and with yours, I do not, but I can’t use WP_CACHE_KEY_SALT.
Any guidance would be highly appreciated. Are there any specific requirements for this key value? Am I doing something wrong?
- This topic was modified 5 years, 9 months ago by .
- This topic was modified 5 years, 9 months ago by .
- This topic was modified 5 years, 9 months ago by .
- This topic was modified 5 years, 9 months ago by .
- This topic was modified 5 years, 9 months ago by .
- This topic was modified 5 years, 9 months ago by .
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP_CACHE_KEY_SALT useless?’ is closed to new replies.