Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
In-Portal Development Team
Conversations
About
Centralize code for resource limit setting
1 view
Skip to first unread message
Alexander Obuhovich
unread,
Oct 18, 2012, 11:28:25 AM
10/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Development In-Portal
Right now following code is copy-pasted in multiple places in In-Portal:
set_time_limit(0);
ini_set('memory_limit', -1);
I propose, that we can move it into a new function and use it instead in all places. Here are the benefits:
it's auto-completed, so less chances to make typo error in setting name
we can add parameters to it allowing setting custom memory & time limits
we can easily track all code, that uses it to determine code, which heavily uses system resources
Task:
http://tracker.in-portal.org/view.php?id=1414
Ready for testing.
--
Best Regards,
http://www.in-portal.com
http://www.alex-time.com
resource_limit_core.patch
resource_limit_modules.patch
Reply all
Reply to author
Forward
0 new messages