From 333ff976233ad4e1715e954cf6dfb60777f7baaa Mon Sep 17 00:00:00 2001 From: Tomaz Solc Date: Fri, 8 Jun 2018 15:12:18 +0200 Subject: [PATCH] Only purge data for the saved section. This fixes the issue where 404 detail page doesn't update after first log parse (see https://github.com/eldy/awstats/issues/71) --- wwwroot/cgi-bin/awstats.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index b04ed6f8..b83f40aa 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -5936,9 +5936,9 @@ sub Read_History_With_TmpUpdate { Save_History( "sider_$code", $year, $month, $date ); delete $SectionsToSave{"sider_$code"}; if ($withpurge) { - %_sider_h = (); - %_referer_h = (); - %_err_host_h = (); + %{$_sider_h{$code}} = (); + %{$_referer_h{$code}} = (); + %{$_err_host_h{$code}} = (); } } if ( !scalar %SectionsToLoad ) { -- 2.47.2