Problem with PHP WordPress memory

Question: I'm trying to increase the php memory limit to 128Mb in order to keep Woocommerce runing properly, doing this, setting define('WP_MEMORY_LIMIT', '128M') at wp-setting.php. in this line:

// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.wp_initial_constants();define('WP_MEMORY_LIMIT', '128M');


In the WordPress, this increment of memory is not reflected, and causing the web to run slow. Could you higher the PHP memory?



Answer: Memory is set to 128MB by default without needing of any changes in wp-config for your plan. It is not recommended to set it higher, because some of our internal limitations are 192MB for 2 minutes for the webmaster mini plan.

Woocomerce will use less memory and will work faster if you install a cache plugin, as far as we know Hyper Cache is 100% compatible with it.

If you want to experiment with the memory, you can add in .htaccess the following:

php_value memory_limit 64M


(64MB is an example - you can set it to whatever you want to). Our configuration supports the full range of php value commands.


Was this article helpful?

mood_bad Dislike 15
mood Like 1
visibility Views: 3227