Hi,
I want to fix some of the plugins I have and get fewer queries by caching uncached templates.
What is required to do and manually cache those?
Almost believed this gonna work but it didn't :/
Tried like this at top to cache uncached templates in plugin which is shown on index.
if(defined('THIS_SCRIPT'))
{
global $templatelist;
if(isset($templatelist))
{
$templatelist .= ',';
}
if(THIS_SCRIPT== 'index.php')
{
$templatelist .= 'index_sidebar_reputation,index_sidebar_post,index_sidebar';
}
}
Try using global_start
hook.