Allow cache period to be set