summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Api.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-26 10:08:46 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-26 10:08:46 +0100
commit1723f8c1fb52dc9830ab30421492a1b546f4e3c5 (patch)
tree31e1ac1f0aac704d6014bfe1bf740df5eccb2a59 /lib/Travelynx/Controller/Api.pm
parentce6237b9fb7f068b2ffaa866a096ffbdc0046870 (diff)
import API: invalidate stats cache after adding a journey
Diffstat (limited to 'lib/Travelynx/Controller/Api.pm')
-rwxr-xr-xlib/Travelynx/Controller/Api.pm1
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 => {