unset memory error in wordpress on wamp

68 Views Asked by At

Error Allowed memory size of xxxxxxxxxx bytes exhausted (tried to allocate xxxxxxxx bytes)
I am new to php.memory_get_usage()
Initial: 61770528 bytes Final: 65964896 bytes Peak: 71564920 bytes
The short answer i got is that references are merely a way for two variables to share the same value and unset() only deletes a variable, not a value.
So, where to put unset($var); or $var = null
Do not want to increase memory limit
Using wordpress theme with some heavy plugins.Kindly overlook mt poor english :]
got a code but where to place it The change was adding single line of code:

public function run()
{   
  gc_disable();
0

There are 0 best solutions below