|
383 | 383 | // Adapter arguments here... |
384 | 384 | ], |
385 | 385 |
|
386 | | - // Maximum federation cache item duration. Federation cache item duration will typically be resolved based on the |
387 | | - // expiry of the artifact. For example, when caching entity statements, cache duration will be based on the 'exp' |
388 | | - // claim (expiration time). Since those claims are set by issuer (can be long), it could be desirable to limit |
389 | | - // the maximum time, so that items in cache get refreshed more regularly (and changes propagate more quickly). |
390 | | - // This is only relevant if federation cache adapter is set up. For duration format info, check |
391 | | - // https://www.php.net/manual/en/dateinterval.construct.php. |
392 | | - ModuleConfig::OPTION_FEDERATION_CACHE_MAX_DURATION => 'PT6H', // 6 hours |
| 386 | + // Maximum federation cache duration for fetched artifacts. Federation cache duration will typically be resolved |
| 387 | + // based on the expiry of the fetched artifact. For example, when caching fetched entity statements, cache |
| 388 | + // duration will be based on the 'exp' claim (expiration time). Since those claims are set by issuer (can |
| 389 | + // be long), it could be desirable to limit the maximum time, so that items in cache get refreshed more |
| 390 | + // regularly (and changes propagate more quickly). This is only relevant if federation cache adapter |
| 391 | + // is set up. For duration format info, check https://www.php.net/manual/en/dateinterval.construct.php. |
| 392 | + ModuleConfig::OPTION_FEDERATION_CACHE_MAX_DURATION_FOR_FETCHED => 'PT6H', // 6 hours |
393 | 393 |
|
394 | 394 | /** |
395 | 395 | * PKI settings related to OpenID Federation. These keys will be used, for example, to sign federation |
|
412 | 412 | ModuleConfig::OPTION_FEDERATION_ENTITY_STATEMENT_DURATION => 'P1D', // 1 day |
413 | 413 |
|
414 | 414 | // Cache duration for federation entity statements produced by this OP. This can be used to avoid calculating JWS |
415 | | - // signature on every HTTP request for OP Configuration statement, Subordinate Statements... |
416 | | - // This is only relevant if federation cache adapter is set up. For duration format info, check |
| 415 | + // signature on every HTTP request for OP Configuration statement, Subordinate Statements... This is only |
| 416 | + // relevant if federation cache adapter is set up. For duration format info, check |
417 | 417 | // https://www.php.net/manual/en/dateinterval.construct.php. |
418 | | - ModuleConfig::OPTION_FEDERATION_ENTITY_STATEMENT_CACHE_DURATION => 'PT2M', // 2 minutes |
| 418 | + ModuleConfig::OPTION_FEDERATION_CACHE_DURATION_FOR_PRODUCED => 'PT2M', // 2 minutes |
419 | 419 |
|
420 | 420 | // Common federation entity parameters: |
421 | 421 | // https://openid.net/specs/openid-federation-1_0.html#name-common-metadata-parameters |
|
0 commit comments