{"id":6417356,"date":"2015-08-10T15:00:15","date_gmt":"2015-08-10T15:00:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-memory-incorrect\/"},"modified":"2016-08-30T16:39:42","modified_gmt":"2016-08-30T16:39:42","slug":"wordpress-memory-incorrect","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-memory-incorrect\/","title":{"rendered":"WordPress memory incorrect."},"content":{"rendered":"<p>Nice plugin..<\/p>\n<p>You might want to check on the code you&#8217;re using to evaluate WP memory limit.<\/p>\n<p>I set memory limit to 96M using wp-config.<br \/>\nSimple System Status correctly displays this, but still shows &#8220;Not OK&#8221;.<\/p>\n<p>I&#8217;m guessing it has something to do with your<br \/>\n<code>if (( WP_MEMORY_LIMIT )\/( 1024 ) &gt; 63)<\/code><br \/>\ncode.<\/p>\n<p>Woocommerce does it this way:<\/p>\n<pre><code>&lt;?php\n\t\t\t\t$memory = wc_let_to_num( WP_MEMORY_LIMIT );\n\n\t\t\t\tif ( $memory &lt; 67108864 ) {\n\t\t\t\t\techo &#039;&lt;mark class=&quot;error&quot;&gt;&#039; . sprintf( __( &#039;%s - We recommend setting memory to at least 64MB. See: &lt;a href=&quot;%s&quot; target=&quot;_blank&quot;&gt;Increasing memory allocated to PHP&lt;\/a&gt;&#039;, &#039;woocommerce&#039; ), size_format( $memory ), &#039;https:\/\/codex.wordpress.org\/Editing_wp-config.php#Increasing_memory_allocated_to_PHP&#039; ) . &#039;&lt;\/mark&gt;&#039;;\n\t\t\t\t} else {\n\t\t\t\t\techo &#039;&lt;mark class=&quot;yes&quot;&gt;&#039; . size_format( $memory ) . &#039;&lt;\/mark&gt;&#039;;\n\t\t\t\t}\n?&gt;<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/simple-system-status\/<\/p>\n","protected":false},"template":"","class_list":["post-6417356","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6417356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6417356\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6417356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}