Jump to content

Cron Jobs are slow


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...