Forum Moderators: coopster & phranque

Message Too Old, No Replies

site cache

         

joecrabman12

7:42 pm on Aug 20, 2001 (gmt 0)



My webpage has a lot of SSI's on the homepage that really only need to be ran once a day. Does anyone know of any scripts that would allow me to dynamically create the homepage once per day and the display that to the end user

Thanks for your help

Joe

Bolotomus

8:08 pm on Aug 20, 2001 (gmt 0)

10+ Year Member



Sounds to me like you don't need SSI's? Just run a program that generates your new pages once a day.

If you really wanted to keep your SSI files as SSI you might try this... keep your SSI files in special directory, e.g. onceaday/index.html. Then in your root crontab do this once a day:

lynx -source [mysite.com...] > /var/www/index.html

(Where mysite.com is your site, and /var/www/ is the web root.) Any other ideas?

joecrabman12

12:46 am on Aug 21, 2001 (gmt 0)



We'll yeah, what kind of program would do that

Any Ideas

Thanks

Joe

ggrot

1:35 am on Aug 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



perl, php, asp, anything. you name it

joecrabman12

2:19 am on Aug 21, 2001 (gmt 0)



how would I do that

Brett_Tabke

10:33 am on Aug 21, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



What you are asking is tricker than you'd imagine.

How much are you into it? Mod rewrite can handle it, but that is a touch involved. Here is one method that can give you some ideas:

[engelschall.com...]