Skip to content Skip to sidebar Skip to footer

Notification On Background Php

I have a web application that use notification to inform user about anything new (just like Facebook). My solution is that I send a request every three seconds to check the databas

Solution 1:

If your application is slowing down when you run the ajax every 3 seconds, try simplifying/shrinking the amount of work the page loaded by the ajax needs to do. Rather than reading an entire table, for example, try selecting only notifications with a "read" status of 0. That way, the .php file is faster to execute, meaning the ajax will not slow down the page as much.


Post a Comment for "Notification On Background Php"