Hi, is there a good way to have a global data file for a usermin module?
In other words, certain actions in a usermin module should add/delete a
line to a single file regardless of user. The global file will be
processed by a single cron job later. One option obviously is to have a
globally writeable file, but this seems like a bad solution.
I could maybe use the global webmin log, but the goal is to have the file
processed by a root cron job and it would be really expensive to parse the
whole webmin log every time. Maybe webmin could have per-module logging?
Still the cronjob would have to delete any stale entries in the log to
avoid things getting out of control, that seems sort of ugly. Any better
ideas?
|