Skip to content

Obtain Riiif cache_duration from config/secrets.yml

Paul Mather requested to merge LIBTD-1154 into master

Created by: pmather

To avoid hard-coding the Riiif server's tile caching duration and thereby allowing us different cache times for different deployed environments (development vs. production), we obtain the duration from config/secrets.yml via the Rails.application.secrets mechanism.

Note: the duration should be an integer that represents the cache duration in seconds.

Merge request reports