Unverified Commit 7de86416 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Invalidate stats cache when setting a journey's polyline

Closes #293
parent ec599ed2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2743,6 +2743,7 @@ sub set_polyline {
			polyline   => \@polyline,
			from_eva   => $route[0][1],
			to_eva     => $route[-1][1],
			stats_ts   => $journey->{rt_dep_ts},
		);
	}

+5 −0
Original line number Diff line number Diff line
@@ -615,6 +615,11 @@ sub set_polyline {
			journey_id  => $opt{journey_id},
			edited      => $opt{edited},
		);
		$self->stats_cache->invalidate(
			ts  => epoch_to_dt( $opt{stats_ts} ),
			db  => $db,
			uid => $uid
		);
	}

}