FAQ - novostrim/watcher4site GitHub Wiki

Can Watcher4site simultaneously watch multiple sites on one hosting?

Yes, it can. Just use directory links. Say, you have a few domains in separate directories. You can install watcher4site to a third-level subdomain, and then add links to the directories of other domains at that web hosting.

How does the script work if the number of files is huge and their processing takes a lot of time?

There is an inherent limitation on PHP script execution time (usually 30 seconds), after which the script is terminated. So, to prevent this kind of abnormal termination, we’ve set a limit on the checking script execution time. If you run a site check manually, the script will be automatically called in cycle until all files are checked. If you run the checking script by cron, there will be no repeat calls before the check is complete. The script will run its due time and then will terminate itself. But when it is run by cron next time, it will resume checking files for changes from the same position where it left its job. Please keep that in mind when specifying a scheduled checking period. It should be noted that checking files by MD5 hash can increase the site checking time severalfold.

When notifications are sent?

Notifications are sent only if some changes are detected when the script is run by cron. For example, if any changes are detected when you run the script manually, then the script will not send any notifications when it is run next time by cron. Besides, notifications are sent only if new changes are detected. For example, if the script is run by cron every hour and something changes at night, then tomorrow morning you will find only one notification, not several ones.