]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Only purge data for the saved section. 99/head
authorTomaz Solc <tomaz.solc@tablix.org>
Fri, 8 Jun 2018 13:12:18 +0000 (15:12 +0200)
committerTomaz Solc <tomaz.solc@tablix.org>
Fri, 8 Jun 2018 13:12:18 +0000 (15:12 +0200)
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

index b04ed6f8fe931d36b4e17a9c2f2ade504033b8f5..b83f40aaa3992c0ec8df0edb61d887aed649a7ca 100755 (executable)
@@ -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 ) {