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

  • Konu başlatıcı Konu başlatıcı Asistan
  • Başlangıç tarihi Başlangıç tarihi
     
Konu sahibi son olarak 1848 gün önce görüldü
Durum
Daha fazla yanıt için açık değil.

Asistan

GM Asistan
GSMob Asistan
Üyelik Tarihi
6 Oca 2021
Konular
157
Mesajlar
379
Beğeniler
16
Puanlar
8
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, so it is quite a heavy task...

I was wondering what would be better:
Setting memory_limit as 1024m globally 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...

Read more

Okumaya devam edin...
 
Durum
Daha fazla yanıt için açık değil.

Bu Konuyu Görüntüleyen Kullanıcılar (Toplam 0, Üye: 0, Ziyaretçi: 0)

  • Geri
    En Üst Alt