Changing the cache duration

Now looks at the published config file for the value.
Merge pull request #16 from shaunpreston/master

Changing the cache duration