Save given cache-ttl-in-seconds to the configuration file correctly