diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-26 10:08:46 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-26 10:08:46 +0100 |
commit | 1723f8c1fb52dc9830ab30421492a1b546f4e3c5 (patch) | |
tree | 31e1ac1f0aac704d6014bfe1bf740df5eccb2a59 /lib/Travelynx | |
parent | ce6237b9fb7f068b2ffaa866a096ffbdc0046870 (diff) |
import API: invalidate stats cache after adding a journey
Diffstat (limited to 'lib/Travelynx')
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 => { |