[ic] Static pages to boost performance

interchange-users@icdevgroup.org interchange-users@icdevgroup.org
Tue Jun 24 13:01:01 2003


You wrote:
> Thanks for the tip.  I put the following in my crontab, as
> I use the default
> DBM database at the moment:
>
> >>  40 4 * * *    perl /usr/local/interchange/bin/expireall -r
>
> >>>>>>>>>>>>>>
>
> Did you look in your tmp directory to see if you are
> accumulating temporary
> scratch vars?
>
> I'm not sure expireall handles these, although  may be wrong.

I would add something like this to cron also:

50 4 * * * rm -rf ~/catalogs/*/tmp/*

and while we're at it, you should have an autostart script in cron to
start the Interchange daemon if it stops for some reason:

1,5,10,15,20,25,30,35,40,45,50,55 * * * * ~/./autostart >>cron.log

and then make sure you have a file called autostart in your base
directory with this in it:

#!/bin/sh
var=`ps ux | grep interchange | grep -v -c grep`
if [ $var -eq 0 ]; then
        ~/path_to_interchange_directory/bin/interchange -s -u
fi


Good luck!

Curt Hauge

//////////////////////////////////////////////////////////////////
// Web Design - Interchange Hosting - Small Business Consulting //
// 1644 133rd Ln NE                         www.mnwebdesign.com //
// Ham Lake, MN 55304                  www.iwantaconsultant.com //
// Phone 612-598-5530                      info@mnwebdesign.com //
//////////////////////////////////////////////////////////////////