Skip to content

Commit

Permalink
Update Pantheon Advanced Page Cache and Config Read Only upstream set…
Browse files Browse the repository at this point in the history
…tings. (#287)
  • Loading branch information
trackleft authored Oct 1, 2024
1 parent 287015c commit b0d7193
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ updates:
interval: "weekly"
reviewers:
- "az-digital/developers"
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion upstream/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"drupal/config_import_single": "2.0.0",
"drupal/core-composer-scaffold": "~10.3.0",
"drupal/core-recommended": "~10.3.0",
"drupal/pantheon_advanced_page_cache": "2.2.0",
"drupal/pantheon_advanced_page_cache": "2.3.0",
"drupal/redis": "1.7",
"drush/drush": "^12.4.3",
"oomphinc/composer-installers-extender": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion web/sites/default/settings.upstream.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@

/**
* Enable config_readonly (if installed) on test and live environments.
* Disable config_readonly (if installed) if config is being changed via CLI.
*/
if (in_array($_ENV['PANTHEON_ENVIRONMENT'], ['test', 'live'])) {
if (in_array($_ENV['PANTHEON_ENVIRONMENT'], ['test', 'live']) && PHP_SAPI !== 'cli') {
$settings['config_readonly'] = TRUE;
}

Expand Down

0 comments on commit b0d7193

Please sign in to comment.