6 Mar
2007
6 Mar
'07
12:35 a.m.
Borched. Hit 'Send' too soon. This was :
Neil Drumm a ecrit le 05/03/2007 23:12:
It is already decently abstracted. The upload module uses it.
Not really. Progress.js is quite generic, and this is what upload.module uses. If you have, say, massive db queries to run (CCK has, for instance, and it seems node acces rebuild has), and you can't ensure that they won't hit php timeout limit, and can't defer them to cron tasks, you have to basically duplicate a large part of the logic in update.php to have it run in small bits ... The idea is to provide an API for modules to simply define their 'progressive' / 'batch' / 'whatever' operations without having to reinvent update.php.