Skip to content
Snippets Groups Projects
Commit 22af2d96 authored by Stephanie Freitag's avatar Stephanie Freitag
Browse files

NOISSUE: reduce caching duration for production

parent 001c4424
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,10 @@ resource "google_project_service" "service" {
service = each.key
project = data.terraform_remote_state.holi_infra_state.outputs.shared_project_id
project = data.terraform_remote_state.holi_infra_state.outputs.shared_project_id
# keep this property as false. Having it true caused https://holi.atlassian.net/wiki/spaces/HOLI/pages/348258312/2023-06-27+All+services+down
disable_dependent_services = false
disable_on_destroy = false
disable_on_destroy = false
}
# in CI, this is set via scripts/create-or-update-env.sh
......@@ -54,8 +54,8 @@ resource "google_cloud_run_service" "donations_api" {
}
env {
name = "CACHE_TTL_MS_BETTERPLACE"
value = local.environment == "production" ? "86400000" : "60000"
# 24 hours for production, otherwise 1 minute
value = local.environment == "production" ? "3600000" : "60000"
# 1 hour for production, otherwise 1 minute
}
resources {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment