Q & A Home
Customizing SNF
Errors
False Positives
Functionality
Integration
Log Files
Resellers
Result Codes
Rulebase Updates
Software
Spam
Subscriptions
Trials
Version 3 Architecture
Documentation Home
Rulebase Updates
What is the recommended interval of time I should set to get updates for the *.snf file?
An UpdateReady.txt file is produced in the SNF workspace whenever the rulebase you have is older than the one that is ready for download.
You could create a script that will check for this file every few minutes and then start the download once the UpdateReady.txt file is found. Be sure that your script creates a file to prevent more than one instance of it from running, and be sure to delete the UpdateReady.txt file when you have successfully downloaded the rulebase file and put it where SNFServer can find it.
SNFServer will pick up the new file automatically -- do not call reload like we did for the previous version.
Updates happen about once every 30 - 90 minutes. If you attempt to download your rulebase about once per half hour that would be ok. Be sure your script doesn't download the file unless it's newer.
If you are setting up an automated script to check for the UpdateReady.txt semaphore as described above then it's ok to run your script once per minute (5 *s in cron). Better than that -- you could have SNF launch your script via a system() call when it creates the UpdateReady.txt file (if that's appropriate for your system). DO NOT check once per minute if you are going to ask our server for a newer rulebase file -- if your script goes directly to our server please space your requests apart by 30 minutes or more.
