• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

automatically updating?

kjavia795

New Member
I need a page to be automatically updating so that when a specific even occurs, it will display something. I know AJAX can do it, but in order to use it, it would be checking the database every few seconds to see if it was true, which is too much pressure on the server.... is there any other way to do this without putting stress on the database every 3 seconds?
 
I'll clarify here. the user wants data to be "pushed" to the user. As the user said: long polling isn't really an option.
 
I think Cron Jobs are your only option... the other option is to have a timer on Javascript and have it run every few seconds to check.

If anyone knows of any way to do it, suggest away!
 
I think Cron Jobs are your only option... the other option is to have a timer on Javascript and have it run every few seconds to check.

If anyone knows of any way to do it, suggest away!
Exactly! These are the only two options, and both hog resources.
 
What kind of 'event' is it?
If it's a new content page, what about using RSS and/or a page that displays a ummary of all new content - similar to how blogs work?

- Vince
 
Back
Top