Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Rolled back default max-age header to 900s. (#129)
Browse files Browse the repository at this point in the history
Ensure database drop before sync.
  • Loading branch information
SRowlands authored Feb 4, 2020
1 parent 5528647 commit 264a413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .docker/images/govcms7/scripts/govcms-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if [[ ! -z "$LAGOON_ENVIRONMENT_TYPE" && "$LAGOON_ENVIRONMENT_TYPE" != "producti
if tables=$(drush sqlq 'show tables;') && [ -z "$tables" ]; then
# SQL sync only in Lagoon development environments.
if [[ ! -z "$LAGOON_ENVIRONMENT_TYPE" && "$LAGOON_ENVIRONMENT_TYPE" != "local" ]]; then
drush sql-drop -y
drush sql-sync @govcms-prod @self $sync_opts -y
common_deploy
else
Expand All @@ -57,6 +58,7 @@ if [[ ! -z "$LAGOON_ENVIRONMENT_TYPE" && "$LAGOON_ENVIRONMENT_TYPE" != "producti
# @see comments for GOVCMS_TEST_CANARY above.
if [[ "$GOVCMS_TEST_CANARY" = TRUE ]]; then
echo "GOVCMS_TEST_CANARY is set, syncing the database."
drush sql-drop -y
drush sql-sync @govcms-prod @self $sync_opts -y
fi
common_deploy
Expand Down
2 changes: 1 addition & 1 deletion .docker/images/govcms7/settings/production.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Rely on the external cache for page caching.
$conf['cache_class_cache_page'] = 'DrupalFakeCache';
$conf['cache'] = 1;
$conf['page_cache_maximum_age'] = 3600;
$conf['page_cache_maximum_age'] = 900;
if (is_numeric($max_age=GETENV('CACHE_MAX_AGE'))) {
$conf['page_cache_maximum_age']= $max_age;
}
Expand Down

0 comments on commit 264a413

Please sign in to comment.