Module: SSLTest::CRL

Included in:
SSLTest
Defined in:
lib/ssl-test/crl.rb

Constant Summary collapse

CRL_CACHE_DURATION =

1 hour

3600
CRL_CACHE_RETENTION =

How long a CRL entry is kept in the backend before being dropped if it’s no longer used. This is much longer than CRL_CACHE_DURATION so the cached body and caching headers survive past the revalidation window (for cheap 304s), but bounded so unused lists don’t pile up forever in a shared/long-lived backend (e.g. memcache). It’s refreshed on every fetch (200/304), so actively-used entries never expire from this.

100 * CRL_CACHE_DURATION