Add ocp-install.sh
parent
d7a9e7f4f2
commit
04d00daf1c
|
@ -0,0 +1,12 @@
|
||||||
|
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
|
Loading…
Reference in New Issue