#79809 WP Memory Limit
Gabriel 3 weeks, 5 days ago
Hi Team! Hope you doing great 🙂
I have a question related to WP Memory Limit. I understand that the value should be set to 256mb and you can set it creating the php.ini file but in the other hand I experience that everytime I update WordPress the file default-constants.php is modified and WP Memory Limit is set to 64mb and I have to change it manually everytime (and I have several websites installed so I have to change in all of them).
My doubt is….. if the memory is set on the php.ini file I have to change it also on the default-constants file? Or if I have it on the php.ini file it automatically detects this WP Memory Limit independently of the default-constants file?
Thanks for all 🙂Amir Rather Support Team 3 weeks, 5 days ago
To increase the memory limit, you can also add
define('WP_MEMORY_LIMIT', '256M');to your WordPress wp-config.php file this way the value will remain updated forever, and default constants file need not be changed, just before the “That’s all, stop editing! Happy blogging.” line.Gabriel 3 weeks, 4 days ago
Thanks a lot Amir for your help and guidance.Danish Iqbal Support Team 3 weeks, 4 days ago
You’re welcome 🙂 Glad it worked.