From b95b5f16b313a6dfe65c8352325d90a3b6bc0d2b Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Mon, 27 Jul 2026 20:37:42 +0330 Subject: [PATCH] feat: add optional ISR webhook parameters for BlogCacheInvalidator --- config/services.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/services.yaml b/config/services.yaml index e161f008..efe01cbb 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -9,6 +9,14 @@ parameters: default_api_ir_base_url: 'https://s.api.ir' + # Optional ISR webhook for the public site. Without defaults, a deploy that + # does not define these variables makes BlogCacheInvalidator un-instantiable, + # which takes the WHOLE blog module down with HTTP 500 — reads included. + # BlogCacheInvalidator is fail-open on an empty string: no webhook, no cache + # invalidation, everything else keeps working. + env(REVALIDATE_WEBHOOK_URL): '' + env(REVALIDATE_WEBHOOK_SECRET): '' + services: # default configuration for services in *this* file _defaults: