Kovo Posted May 15, 2010 Share Posted May 15, 2010 HelloI have a cron job that runs at midnight every day. It executes one php script. If I run that script via a browser, it takes less than a second to execute.When the cron job runs, it takes at least 20 seconds.The script itself connects to a mysql database and runs several functions (about 20-30 queries, mostly updates) The database is located on the same server.Any ideas why theres such a huge performance gap?I used absolute paths for all includes (theres only 2)Thanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted May 17, 2010 Share Posted May 17, 2010 It might be going through a different database interface when the script gets run on a command line. I wouldn't expect the difference to be so much though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.