Heya, Frank.
Try a hybrid.
Try a hybrid.
- When the User updates the database, log the timestamp.
- While a User is logged in, check via AJAX once every X seconds to see if this timestamp has changed and alert the User if it has. Update a different timestamp every time the AJAX call connects so that you know that the User has been notified.
- Once per X hours, send a notification email to every user where their check-for-updates timestamp is less that their database-was-modified timestamp.
- You can create a separate table that lists the modification timestamps for each table if you want to be able to determine which tables were modified when sending emails / AJAX results.
Comment