// Performance optimizations

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15719 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-05-29 08:32:13 +00:00
parent 9628df1624
commit 74f5b513af
7 changed files with 48 additions and 16 deletions
+5 -1
View File
@@ -200,7 +200,11 @@ class CombinationCore extends ObjectModel
*/
public static function isFeatureActive()
{
return Configuration::get('PS_COMBINATION_FEATURE_ACTIVE');
static $feature_active = null;
if ($feature_active === null)
$feature_active = Configuration::get('PS_COMBINATION_FEATURE_ACTIVE');
return $feature_active;
}
/**