From 96b57f9a505dd557fc218c1875d88a6b0833a145 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Mon, 4 Jul 2022 17:03:10 +0200 Subject: [PATCH] PPv2/ISU: Set cache token forever/non-expiring --- src/pretix/plugins/paypal2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/paypal2/views.py b/src/pretix/plugins/paypal2/views.py index 7721582d59..2f920c0053 100644 --- a/src/pretix/plugins/paypal2/views.py +++ b/src/pretix/plugins/paypal2/views.py @@ -211,7 +211,7 @@ def isu_return(request, *args, **kwargs): try: cache.incr('pretix_paypal_token_hash_cycle') except ValueError: - cache.set('pretix_paypal_token_hash_cycle', 1) + cache.set('pretix_paypal_token_hash_cycle', 1, None) gs = GlobalSettingsObject() prov = Paypal(event)