Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Long running PHP script and “Allowed memory size of * exhausted”

$
0
0

Replies: 0

Hello,

In our WP Admin, we sometimes need to run a long PHP script that performs many DB queries. Each time we do this with Query Monitor enabled, Query Monitor always crashes our script with the error “Allowed memory size of * exhausted”. The script works fine when Query Monitor is disabled.

Because of this, currently, we have to disable Query Monitor manually every time before running our script, but is there another way? What can be done? Is there a way to “bypass” query monitor programmatically in our script without disabling the plugin manually?

Thanks!


Viewing all articles
Browse latest Browse all 59525

Trending Articles