WP memory limit is the maximum amount of memory (RAM) that a website can use at one time. Once the allocated memory limit is exhausted, your website will start to encounter a fatal error. Some of the factors that contribute to the exhaustion of the WP memory limit include; WordPress itself, the theme being used and also the list of active plugins. The more complex and bigger your website is, the more memory it needs. The default memory limit for WordPress is 32MB.
32MB memory limit may be ideal for small websites with limited number of plugins and visitors. Installing a fully functional demo of a premium theme that require a large list of custom plugins to be installed too, may require you to increase the WP memory limit. Generally, it’s advisable that once you start encountering the ‘Fatal Error: Memory Size Exhausted‘ error, you should increase your website’s WP memory limit.
The recommended WordPress memory limit is 256MB.
a. wp-config.php
b. php.ini
Note:
Many shared hosting providers restrict you from accessing the php.ini file. This method is only applicable in case you have direct access to your php.ini file or if you are running your WordPress on a local host. It is good to note as well that this method only affects your PHP memory limit.
c. .htaccess
Victor Mochere is an award winning blogger, social media influencer, literati savant, altruistic, and a netpreneur creating and marketing digital content.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Permission to use quotation from any article is granted subject to full credit of the source being given by referencing the direct link of the article on Victor Mochere. However, reproducing any content on this site without explicit permission is strictly prohibited.
We are committed to upholding our editorial standards, including accuracy. Our policy is to review each issue on a case by case basis, immediately upon becoming aware of a potential error or need for clarification, and to resolve it as quickly as possible. If you notice an error or typo that needs correction, please don’t hesitate to contact us for immediate action.
Victor Mochere brings you a daily dose of well curated up to date facts, news, opinions and important updates from Kenya, Africa and around the World.
Copyright © 2021 Victor Mochere. All rights reserved.
Copyright © 2021 Victor Mochere. All rights reserved.