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.
This commit is contained in:
parent
f2506bdc74
commit
b3cd3833f1
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ sub read_products() {
|
|||
state $mtime;
|
||||
|
||||
return \%products if $mtime and $mtime == -M $filename;
|
||||
%products = ();
|
||||
$mtime = -M $filename;
|
||||
|
||||
my $line = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue