espresto / reclaim-social-media

reclaim your stuff from social media silos
GNU General Public License v2.0
47 stars 10 forks source link

dealing with PHP time and memory limits in safe mode #75

Closed diplix closed 10 years ago

diplix commented 10 years ago

if safe mode is not activated, both, the PHP time and memory limits, can be increased to a limit where an initial import of >300 tweets or facebook posts run through. many shared hosters don't allow increasing those limits, so we might have to find a way to queue the imports in little chunks. if there is a queueing mechanism, a progress indicator would also be nice.

nonsenz commented 10 years ago

what about using ini_get('max_execution_time') and calculate an importlimit? like 5 times max_execution_time or something like that. and if ini_get('safe_mode') is false we could even ini_set('max_execution_time') higher in some cases for that one request.

diplix commented 10 years ago

yes, good idea. most of all, reduce the decisions the user has to make (like setting an import limit). but still: what happens if the max_excecution time is too low, to get all posts? then we need some kind of queueing?

diplix commented 10 years ago

i think this is solved by 9881668.