Skip to content

Commit 5e59708

Browse files
authored
Reverting cli cache changes
Also removed wp-cli options from wp-config.php as they are not needed
1 parent 033290d commit 5e59708

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

config/var/www/wordpress/wp-config.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@
109109
// https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices
110110
define( 'DISABLE_NAG_NOTICES', true );
111111

112-
/* WP-CLI */
113-
define( 'WP_CLI_BIN_DIR', '/tmp/wp-cli-phar' );
114-
define( 'WP_CLI_CONFIG_PATH', '/tmp/wp-cli-phar/config.yml' );
115-
define( 'WP_CLI_CACHE_DIR', '/var/cache/.wp-cli/cache' );
116112

117113
/* The SEO Framework Headless Mode */
118114
// https://kb.theseoframework.com/kb/headless-mode/

scripts/install/tools/wordpress/wp-cli.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ sudo mv wp-cli.phar /usr/local/bin/wp
3030
mkdir -p /tmp/wp-cli-phar
3131
chown -R www-data:www-data /tmp/wp-cli-phar
3232
chmod 775 /tmp/wp-cli-phar
33-
# Create cache dir for www-data user
34-
mkdir -p /var/cache/.wp-cli/cache
35-
chown -R www-data:www-data /var/cache/.wp-cli
36-
chmod -R u+rwX,g+rX,o-rwx /var/cache/.wp-cli # Give www-data read/write/execute, group read/execute
33+
mkdir -p ~/.wp-cli/cache
34+
chown -R www-data:www-data ~/.wp-cli/cache
35+
chmod 775 ~/.wp-cli/cache
3736

3837
# Install WP-CLI Extensions
3938
wp package install 10up/wpcli-vulnerability-scanner:@stable --allow-root

0 commit comments

Comments
 (0)