From b3cd3833f16b52b8a3ecec63179c452bccfd23a3 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 18 Sep 2023 00:00:33 +0200 Subject: [PATCH] products: clear products cache before reading products list Fixes bug where a product would remain available if it is removed from revbank.products during runtime. --- plugins/products | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/products b/plugins/products index f172960..55f658d 100644 --- a/plugins/products +++ b/plugins/products @@ -10,6 +10,7 @@ sub read_products() { state $mtime; return \%products if $mtime and $mtime == -M $filename; + %products = (); $mtime = -M $filename; my $line = 0;