From: Tomaz Solc Date: Fri, 8 Jun 2018 13:12:18 +0000 (+0200) Subject: Only purge data for the saved section. X-Git-Tag: AWSTATS_7_8~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F99%2Fhead;p=thirdparty%2FAWStats.git 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) --- 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 ) {