Here is the dilema I am faced with:
My index page has a lot of content that requires a lot of server time. It involves searching hundreds of songs and finding the top that have been downloaded and listing them and bla bla. Instead of running the query each time someone visits the site, I run it every day and keep the results in the DB so my index can get it from there instead of doing multiple searches for different parts of the content.
I however cannot run the script every single day. Is there a way that the script can run its self every day, hour, whatever, without someone running it? I figured if there is no way I can store the time it was last changed, and compare it to the time now, and once it is over 24 hours or whatever, it changes the proper things.
Is there a way that I can make a script run every so many hours instead of having someone there accessing it every day, or putting the strain on some random user who access the index on that certain time?