I have a Mason app (display sales reports online, protected by custom client certificates) that relies on a YAML data file to convert from the short publisher code (which is used as the directory structure) to the long human readable publisher name. I load this data file in a <%once> block (since it is slow moving, e.g. changing about once a week).
I have set up an automatic update of this data file, but I am stuck trying to figure out the best way to signal to the Mason app that it needs to re-read the data file (short of reloading Apache). Some thoughts I had were: 1) load the data file from a module and just touch the module after updating the data, then let Mason's automatic caching deal with the reload; 2) create a new template that reloads the data, and just hit that from the script that updates the data. Any other suggestions that people have already used? Originally, this data was in a MySQL database, but I was trying to eliminate the use of an external database for performance purposes. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users