Ureach
Forum Replies Created
-
Forum: Plugins
In reply to: [P3 (Plugin Performance Profiler)] scan result 300,000% plugin impactThank you, very much for your help! It looks like your suggestion is absolutely correct. I’ll leave a copy here in case somebody else experiencing similar issue:
========= start copy ========
Hello,
I would suggest you try disabling eaccelerator’s code optimizer first. If that doesn’t work, try disabling eaccelerator’s opcode caching, too.
Normally you want these features, but eaccelerator is messing with PHP’s internal operations in two ways. First, it’s optimizing the opcodes — this means it’s taking the compiled php and rewriting it to be more efficient and remove dead code, etc. before it runs so it runs faster. Second, it’s caching the compiled opcode. Those are both great features for performance, but when you’re trying to see what’s going on below the surface, these features can really make it difficult. Once you’re done, I recommend you turn those features in eaccelerator back on. They’re good for your site, just not while you’re profiling.
Here’s how to do it on a mod_php site:
Edit your site’s .htaccess file and add this line of code:
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0Once you’re done, just remove those lines from your .htaccess file, or commend them out by putting hash mark (#) in front of both of them.
Please let me know if you have any questions.
Thanks,
Kurt Payne
========= end copy ========