📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
O

RSS Setting memory_limit in php.ini or \XF::setMemoryLimit(-1); for the specific job I am running?

  • Thread starter Thread starter Orit
  • Start date Start date
O

Orit

Guest
Guest or Bot
Lately we have had memory problems with saving permissions to our registered usergroup.
We have more than 140K users, all are obviously in the registered usergroup.

I was wondering what would be better:
Setting memory_limit as 1024m in php.ini,
or adding \XF::setMemoryLimit(-1); in the beginning of the actionUserGroupSave() and actionNodeSave() functions (as a way to disable the memory limit)?

Adding \XF::setMemoryLimit(-1); fixes the problem.
Our server guy is hesitant to set...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top