Quote:
Originally Posted by FractalizeR
Great hack. But MARCO1_Separate template is uncached, and that means 1 additional query per page hit. Please add the following plugin to your addon to do it right:
PHP Code:
<plugin active="1" executionorder="5">
<title>Template caching</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[if ($vbulletin->options['MARCO1_Seponoff'])
{
$globaltemplates = array_merge($globaltemplates, array('MARCO1_Separate'));
}]]></phpcode>
</plugin>
|
Waw i forget Cach it hah i will update the first post