if ($template->params->get("cache-enabled", 0) == 1)
{
$cache = GantryCache::getInstance($app->isAdmin());
$cache->setLifetime($template->params->get('cache-time', $conf->getValue('config.cachetime') * 60));
$cache->addWatchFile(JPATH_SITE . '/templates/' . $template_name . '/templateDetails.xml');
$cache->addWatchFile(JPATH_SITE . '/templates/' . $template_name . '/template-options.xml');
$gantry = $cache->call('Gantry-' . $template_name, array('Gantry', 'getInstance'), array($template_name));
}
else
{
$gantry = Gantry::getInstance($template_name);
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.