espresto/reclaim-social-media

dealing with PHP time and memory limits in safe mode

Closed this issue · 3 comments

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.

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.

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?

i think this is solved by 9881668.