Quote:
Originally posted by trainer
what is this like on server load? it seems to be pretty hard on my site. any ideas?
|
IMO it's performance is
quite good. For once there is no extra SQL connection this hacks creates on your site so it doesnt increase MySQL load. As for PHP performance, it's quite bearable and the increase is very trivial (at least in my site). Check my message a few lines above for its reason. But if you want to make sure, install Nakkid's (Teck) microstats hack and check the PHP running time before and after the hack. There is no significant load in my site..
But if you want to improve the performance better, here is a code I was already planning to add to the hack:
edit functions.php, find:
PHP Code:
return advanced_templates($template);
Replace it AS:
PHP Code:
if (substr_count($template,'[[/(')>=1)
{
return advanced_templates($template);
}
else
{
return $template;
}
This will stop parsing for regular templates (=not having conditionals inside) thus will increase the performance..
BTW. Did my suggestion work for your problem?