Hi Andreas,
my modification is only to enshure that nph-build does not loop endlessly. It does not decrease the building-time!
To decrease the building-time you have to modify nph-build to accept parameters.
in the beginning change:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL);
to:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL $DIRTY);
insert after:
# Determine what type of build we are doing and do it.
insert:
my $in = new CGI;
$DIRTY =$in-> param('dt');
if ($DIRTY eq 'D'){ $DIRTY = 1} else {$DIRTY=0}
now change sub build_all to
sub build_all {
# --------------------------------------------------------
# Rebuilds the entire pages.
#
if ($DIRTY == 0) {
&build_backup();
&build_update_counters();
&build_update_newpop();
&build_detailed_view();
&build_home_page();
&build_static();
&build_new_page();
&build_cool_page();
&build_category_dropdown();
&build_category_pages();
} else {
&build_stats();
}
}
Now you must change the building-links in Admin_HTML.pm
in the sub html_navigation:
<p><$FONT><b>Building</b>
</font>
<$FONT>
<a href="nph-build.cgi?dt=D">Build Stats</a>
<a href="nph-build.cgi">Build All</a>
<a href="nph-index.cgi">Re-Index</a>
<a href="$SCRIPT_URL?db=Links&do=html_edit_template">Edit Templates</a>
<a href="$SCRIPT_URL?db=Search_Log&do=html_keywords&Term=*">Keywords</a>
</font>
</p>
Thats it. Beware to build the stats prior to build the site. If you know a little perl it is easy to modify this workaround to build backups, homepage, detailed pages whats new etc. seprately.
I hope it will help you to get your site running. If you encounter problems, I am on holliday till the 10th of september :)
regards, alexander
my modification is only to enshure that nph-build does not loop endlessly. It does not decrease the building-time!
To decrease the building-time you have to modify nph-build to accept parameters.
in the beginning change:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL);
to:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL $DIRTY);
insert after:
# Determine what type of build we are doing and do it.
insert:
my $in = new CGI;
$DIRTY =$in-> param('dt');
if ($DIRTY eq 'D'){ $DIRTY = 1} else {$DIRTY=0}
now change sub build_all to
sub build_all {
# --------------------------------------------------------
# Rebuilds the entire pages.
#
if ($DIRTY == 0) {
&build_backup();
&build_update_counters();
&build_update_newpop();
&build_detailed_view();
&build_home_page();
&build_static();
&build_new_page();
&build_cool_page();
&build_category_dropdown();
&build_category_pages();
} else {
&build_stats();
}
}
Now you must change the building-links in Admin_HTML.pm
in the sub html_navigation:
<p><$FONT><b>Building</b>
</font>
<$FONT>
<a href="nph-build.cgi?dt=D">Build Stats</a>
<a href="nph-build.cgi">Build All</a>
<a href="nph-index.cgi">Re-Index</a>
<a href="$SCRIPT_URL?db=Links&do=html_edit_template">Edit Templates</a>
<a href="$SCRIPT_URL?db=Search_Log&do=html_keywords&Term=*">Keywords</a>
</font>
</p>
Thats it. Beware to build the stats prior to build the site. If you know a little perl it is easy to modify this workaround to build backups, homepage, detailed pages whats new etc. seprately.
I hope it will help you to get your site running. If you encounter problems, I am on holliday till the 10th of september :)
regards, alexander