summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-26 20:39:44 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-26 20:39:44 +0200
commita760274c7c20570cf6380fc58682f649456a1268 (patch)
treea4ee607cb3fb7797b329c6f1be252b4fd53d1a99 /lib/Travelynx.pm
parentd77566bba4fe89e6ae7ef6c0c1fb2bac6aeb7668 (diff)
Invalidate stats cache after adding a new journey
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index ce2d739..f5fdb47 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -274,6 +274,7 @@ sub startup {
$journey_id
= $db->insert( 'journeys', $entry, { returning => 'id' } )
->hash->{id};
+ $self->invalidate_stats_cache( $opt{rt_departure}, $db );
};
if ($@) {