From a961e305d4061c76eec5d4d76918842ebceccb26 Mon Sep 17 00:00:00 2001 From: denny Date: Wed, 13 Sep 2023 14:59:28 +0000 Subject: [PATCH] Update ocp-install.sh --- ocp-install.sh | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/ocp-install.sh b/ocp-install.sh index 75cacbb..8d65e72 100644 --- a/ocp-install.sh +++ b/ocp-install.sh @@ -1,12 +1,18 @@ +#!/bin/bash + cd /var/www/webroot/ROOT - #disable litespeed object cache (not entire plugin) - wp plugin install redis-cache --activate - wp config set WP_REDIS_IGNORED_GROUPS "['comment','counts','plugins','themes','wc_session_id','learndash_reports','learndash_admin_profile','bp_messages','bp_messages_threads']" --raw - wp config set WP_REDIS_CLIENT 'relay' - wp config set WP_REDIS_SCHEME 'unix' - wp config set WP_REDIS_IGBINARY true --raw - wp config set WP_REDIS_PATH '/var/run/redis/redis.sock' - wp config set WP_REDIS_PORT 0 --raw - wp config set WP_REDIS_DATABASE 0 --raw - wp redis enable - wp cache flush \ No newline at end of file + +#disable litespeed object cache (not entire plugin) + +#wp plugin install redis-cache --activate +#install OCP instead + +wp config set WP_REDIS_IGNORED_GROUPS "['comment','counts','plugins','themes','wc_session_id','learndash_reports','learndash_admin_profile','bp_messages','bp_messages_threads']" --raw +wp config set WP_REDIS_CLIENT 'relay' +wp config set WP_REDIS_SCHEME 'unix' +wp config set WP_REDIS_IGBINARY true --raw +wp config set WP_REDIS_PATH '/var/run/redis/redis.sock' +wp config set WP_REDIS_PORT 0 --raw +wp config set WP_REDIS_DATABASE 0 --raw +wp redis enable +wp cache flush \ No newline at end of file