Plugin times out – suggested fix
-
I noticed that this plugin was running very slow after I made some changes to my server setup, and then over the weekend it started timing out and throwing the PHP error
Maximum exection time of 30 seconds exceeded in /PATH/lcp-catlist.php on line342.
This line contains a preg_replace() call, and my understanding is that this function is quite expensive.
I’m not sure what this line does, but when I removed the entire containing IF statement, the plugin now FLIES and I can’t see any real difference with the output in my particular configuration.
Is the preg_replace() necessary, or might it be possible to achieve the same outcome with a less expensive function?
Thanks for a great plugin that I use extensively!
- The topic ‘Plugin times out – suggested fix’ is closed to new replies.