Articles of memory

Mass importing json data into custom fields (postmeta)

I am in the process of importing large amounts of data into a custom post type that has several custom fields (postmeta fields created by Advanced Custom Fields). I am using the following function to import the data and it works fine with my test file of about 10 posts with the exception of the […]

Can you limit the memory usage of a particular plugin?

I know that it is possible to restrict (or extend) the memory usage of the entire WP site using: define(‘WP_MEMORY_LIMIT’, ’64M’) Is it possible to do the same for only one plugin that the website uses ?

Are there individual memory allocations for different user roles in WordPress?

I am attempting to edit a specific page via the WordPress admin area while logged in as an Editor, however, the page dies with the following error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in [PATH]/htdocs/wp-includes/meta.php on line 841 This is only affecting this page, and granted, it […]

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a “Where did you hear about us?” question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin worked fine but has stopped working at some since I wrote it – seemingly, due to a memory issue. […]

Memory errors with media upload, WordPress can't use more than 96M (while there's 512 available!)

I’m aware that this is a known problem but I was unable to address it using information found in WPAnswers and WordPress support forums. In my Worpdress single site installation the media uploader is always throwing an error at me out of memory (allocated 99614720) (tried to allocate 3760 bytes) the amount of allocated memory […]

Allowed Memory Size Error in WordPress

My WordPress is always down. I contacted my host and they said that the server is fine. My WordPress site has some basic plugins which are all in one seo seo search tagging google xml robots.txt related post I can’t find what is my problem. I have some HTML files which are working fine, but […]

How many caching plugins should be used?

Online researching shows that there are many plugins out there to perform caching on WP. Just to name a few: WP Super Cache W3 Total Cache WP Widget Cache DB Cache Reloaded 1 Blog Cacher Hyper Cache Is using just one plugin good, or is there a point in using more then one at the […]

What's the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?

What’s the difference beetween define( ‘WP_MEMORY_LIMIT’, ’96M’ ); and define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ ); In my host I have this define( ‘WP_MEMORY_LIMIT’, ‘786M’ ); define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ ); is this correct, should the WP_MAX_MEMORY_LIMIT be higher ?

Not enough memory

Sometimes after activating a plugin the admin side is blank with a memory error message, sometimes the front page too. The standard fix is to increase the memory in config.php. What is the best way to prevent in advance all or most memory problems to occur ?

WordPress database becoming huge. How to analyze and optimize it? fear of running out of memory

look at the size of my wordpress database tables: are there simple ways to optimize it? I fear of running out of memory one day maybe bad collation? how can I analyze what is eating up so much space in the posts and post meta tables?