[-] FO : #PSCFV-3268 - Fix bug with cache cartrule badly fill

// This fix is not "clean". It would be intersting to take more time to found a better solution

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16547 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-07-24 13:08:44 +00:00
parent 63737a93ec
commit 412cae1d51
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -913,6 +913,15 @@ class CartRuleCore extends ObjectModel
return $reduction_value;
}
/**
* Make sure caches are empty
* Must be called before calling multiple time getContextualValue()
*/
public static function cleanCache()
{
self::$only_one_gift = array();
}
protected function getCartRuleCombinations()
{