====== Wordpress Redis-Cache aktivieren ====== //Quelle: [[http://repat.de/2014/10/wordpress-cache-mit-redis-und-uberspace/|Externer Link]]// * Redis-Service installieren test -d ~/service || uberspace-setup-svscan uberspace-setup-redis * Git-Repo 'wp-redis-cache' clonen mkdir ~/git && cd ~/git git clone https://github.com/BenjaminAdams/wp-redis-cache.git * Plugin zu Wordpress hinzufügen cp -r wp-redis-cache ~/www/${WP-PATH}/wp-content/plugins/ * Plugin in Wordpress Web-UI aktivieren * Datei 'index-wp-redis.php' kopieren cp index-wp-redis.php ~/www/${WP-PATH}/ * Sicherungskopie von 'index.php' erstellen mv ~/www/${WP-PATH}/index.php ~/www/${WP-PATH}/index.php.bak-$(date +%F) * Datei 'index.php' kopieren cp index.php ~/www/${WP-PATH}/ * Datei 'index-wp-redis.php' editieren * Setzen von '$debug' $debug = false; * Setzen von '$websitIp' $websiteIp = 'z.y.x.w'; * Setzen von '$sockets' $sockets = true; * Setzen von '$redis_server' $redis_server = '/home//.redis/sock'; * Setzen von '$secret_string' $secret_string = 'mysecret'