Set and get how long the cache is valid and the files are downloaded only once and then returned from the cache.

set_cache_length(length)

get_cache_length()

Arguments

length

numeric time in seconds how long the cache is valid.

Value

get_cache_length()numeric length of cache validity (default value is 7 days)

Functions

  • set_cache_length: Set cache length

  • get_cache_length: Get cache length