Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Revert "Temopararily allow to configure webhook cache timeouts"

Cezary Miączd7400be7e767
diff --git a/saleor/webhook/const.py b/saleor/webhook/const.py
index f711c77a53..429f02b038 100644
--- a/saleor/webhook/const.py
+++ b/saleor/webhook/const.py
@@ -1,10 +1,3 @@
-import os
-
-# TODO: restore hardcoded values or move to settings
-CACHE_EXCLUDED_SHIPPING_TIME = int(
- os.environ.get("WEBHOOK_CACHE_EXCLUDED_SHIPPING_TIME", 3 * 60)
-)
-WEBHOOK_CACHE_DEFAULT_TIMEOUT = int(
- os.environ.get("WEBHOOK_CACHE_DEFAULT_TIMEOUT", 5 * 60)
-)
+CACHE_EXCLUDED_SHIPPING_TIME = 60 * 3
+WEBHOOK_CACHE_DEFAULT_TIMEOUT: int = 5 * 60 # 5 minutes
APP_ID_PREFIX = "app"