Store the database last-modification-time somewhere. Check your locally stored last-modification-time against the database's. Query the database only if it is has been updated.
I use a simple file for that (just use -M to check the file time).
update: other ways: use IPC, use the database itself, ...
In reply to Re: refreshing data across children in Apache
by fglock
in thread refreshing data across children in Apache
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |