Webmastersite.net
Register Log In

sendqueuemail
this function slows down the whole website

Comments on sendqueuemail

LotusE
Beginner

Usergroup: Customer
Joined: Sep 06, 2005

Total Topics: 4
Total Comments: 6
LotusE
Posted Jul 17, 2006 - 12:01 PM:

Hello everyone,

My links site is very slow. My provider found out that it is the function sendqueuemail in the file commonfuncs.php that causes the trouble.

I've added the lines:

echo "start function: ". date('Y-m-d H:i:s');

and

echo "stop function: ". date('Y-m-d H:i:s');

And it always takes about 2 minutes to get through this function. But this function is called through every page, so it's not workable.

this is my website:

www.ter.nl/links/index.php

Can anyone help please?

Cheers

LotusE
LotusE
Beginner

Usergroup: Customer
Joined: Sep 06, 2005

Total Topics: 4
Total Comments: 6
LotusE
Posted Jul 18, 2006 - 12:06 PM:

nobody ??? sad
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 18, 2006 - 12:38 PM:

If that function is slow, your server has a problem with mail. Contact your web host and tell them that the PHP mail() function is running very slowly.

It's possible they may require the -f parameter or some such non-standard option, but normally you'd get a 500 error instead of slowness in that case.
LotusE
Beginner

Usergroup: Customer
Joined: Sep 06, 2005

Total Topics: 4
Total Comments: 6
LotusE
Posted Jul 18, 2006 - 4:33 PM:

Can I disable the function in any way in WSN Link? What does it do and is it vital for the system?

Cheers

LotusE
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 19, 2006 - 9:54 AM:

It's sends emails. I consider it vital to be able to send emails, I like people to know of approval/rejection and be able to subscribe, I like to require email validation etc etc, but perhaps you don't. You can remove each line (I believe there are two) that contain "mail(" to disable it, but I don't see much point in a server which can't send email.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.