This could probably be done by simply 'touch' ing the component. If it's modified time changes it should cause it to be re-compiled from source, which should re-execute the once block.
If you're running in static source mode, see the static_source_touch_file parameter. John Peacock wrote: >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 > > > ------------------------------------------------------------------------- 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