Wednesday 07 January 2009 5:14:19 am
hi, I'm writing a cronjob script for the extension eZAWStats [1] to correct files generated by AWStats. To avoid to process all files at every execution, I need a way to remember the date of the last execution.
I see many ways of doing that :
1. add the timestamp in expiry.php using the eZExpiryHandler class
2. use my own file to store the last execution time using the eZPHPCreator class
3. store the timestamp in my own SQL table 4. store the timestamp in an existing table like ezsite_data or in ezoperation_memento using eZMementoOperation persistent object What is the best practice in such case ? [1] http://projects.ez.no/ezawstats cheers
Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
|