WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just moved to a dedicated server and I was wondering whether i need to do anything explicitly inside wordpress config files to increase the performance of the site, like setting an upper memory limit.. is this really needed?

many thanks, Andy

share|improve this question
up vote 0 down vote accepted

Actually, you should take advantage of your server and move some of the load from the database (usually disk) to the memory. You could start by enabling the APC PHP extension and installing this plugin.

share|improve this answer

Nothing needs to be done in your WordPress configuration, just in PHP (in your server's php.ini file).

share|improve this answer

Actually WordPress does have an option within its wp-config.php file to set the maximum allowed memory that WordPress is allowed to consume. It defaults to 32MB.

WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

However if you want to allocate a specific memory amount to WordPress you can do so.

You can set it higher by simply adding one line:

define('WP_MEMORY_LIMIT', '64M');

That will increase the memory limit to 64MB obviously you can set it higher.

You can see more in the Codex Page on Wp-config.php

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.