We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11ca6c commit 3eea433Copy full SHA for 3eea433
src/Google/AccessToken/Verify.php
@@ -178,7 +178,7 @@ private function getFederatedSignOnCerts()
178
{
179
$certs = null;
180
if ($cache = $this->getCache()) {
181
- $cacheItem = $cache->getItem('federated_signon_certs_v3', 3600);
+ $cacheItem = $cache->getItem('federated_signon_certs_v3');
182
$certs = $cacheItem->get();
183
}
184
@@ -189,6 +189,7 @@ private function getFederatedSignOnCerts()
189
);
190
191
if ($cache) {
192
+ $cacheItem->expiresAt(new DateTime('+1 hour'));
193
$cacheItem->set($certs);
194
$cache->save($cacheItem);
195
0 commit comments