From 1723f8c1fb52dc9830ab30421492a1b546f4e3c5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Jan 2020 10:08:46 +0100 Subject: import API: invalidate stats cache after adding a journey --- lib/Travelynx/Controller/Api.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 931d41b..96817fb 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -523,6 +523,7 @@ sub import_v1 { ); } else { + $self->invalidate_stats_cache( $opt{rt_departure}, $db, $uid ); $tx->commit; $self->render( json => { -- cgit v1.2.3