Jump to content

Cron Jobs are slow


Kovo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...