>However there are needs arising like: a permanent archive might need
>periodic housekeeping, like deleting pages older than ten versions ago.
>This can be done with a cron script.
Here's my take on how this should be done (you've seen my philosophy
on this before when we introduced the zip-dump):
All these maintainance tasks should be done by normal CGI means. Eg.
admin.php?action=clean_archive&keep_versions=10
would perform what you suggest above.
Then, if you want to cronify it, you can do so on any computer.
Ie. on my home computer I can run:
GET -Cuser:password http://where.ever/admin.php?action=clean_archive&...
I think using PHP as a standalone interpreter (other than for debugging
purposes) is a bad idea.
Some points:
Cron is a unix-ism.
Your method requires shell (and cron) access on the server.
|