Skip to content

Commit

Permalink
Make sure not to cross-cache between new and old version directory re…
Browse files Browse the repository at this point in the history
…quests.
  • Loading branch information
pnomolos committed Jul 12, 2013
1 parent d6745a2 commit 13089c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/idealpaymentgateway_helper.php
Expand Up @@ -16,7 +16,8 @@ class IdealPaymentGateway_Helper {

public static function directoryRequest($fields = array(), $host_obj) {
$cache = Core_CacheBase::create();
$cache_key = 'idealpaymentgateway:DirectoryReq:' . ($host_obj->test_mode?'testing':'live');
$cache_key = 'idealpaymentgateway:DirectoryReq:' .
($host_obj->test_mode?'testing':'live') . ($host_obj->old_version?'22':'331');
if (!($result = $cache->get($cache_key))) {
$result = self::doRequest('DirectoryReq', $fields, $host_obj);
if (!$result->Error) {
Expand Down

0 comments on commit 13089c8

Please sign in to comment.