Skip to content

Commit

Permalink
cache key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jun 20, 2024
1 parent ebec8db commit c6416d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/ApiFacade/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(TpayConfigInterface $tpay, CacheInterface $cache)
}
$this->tpayApi->transactions()->setClientName($tpay->buildMagentoInfo());
if (!$token) {
$this->cache->save(serialize($this->tpayApi->getToken()), $this->getAuthTokenCacheKey($tpay));
$this->cache->save(serialize($this->tpayApi->getToken()), $this->getAuthTokenCacheKey($tpay), [\Magento\Framework\App\Config::CACHE_TAG], 7100);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Model/ApiFacade/Transaction/TransactionApiFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function channels(): array
return true === $channel->available;
});

$this->cache->save(serialize($channels), $cacheKey, [], self::CACHE_LIFETIME);
$this->cache->save(serialize($channels), $cacheKey, [\Magento\Framework\App\Config::CACHE_TAG], self::CACHE_LIFETIME);

return $channels;
}
Expand Down

0 comments on commit c6416d0

Please sign in to comment.