Skip to content

Commit

Permalink
add the value of the option to add if the option didn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Aug 6, 2024
1 parent 263a537 commit 8584b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/behat-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ terminus wp $SITE_ENV -- theme activate twentytwentythree
terminus wp $SITE_ENV -- rewrite structure '/%year%/%monthnum%/%day%/%postname%/'
# Add the pantheon-cache option if it doesn't already exist.
if ! terminus wp $SITE_ENV -- option get pantheon-cache; then
terminus wp $SITE_ENV -- option add pantheon-cache
terminus wp $SITE_ENV -- option add pantheon-cache '{"default_ttl":600,"maintenance_mode":"disabled"}' --format=json
fi
# Set the starting default_ttl value to 600, our old default.
terminus wp $SITE_ENV -- option patch set pantheon-cache default_ttl 600

0 comments on commit 8584b5e

Please sign in to comment.