1. Now uses a variable to set the cache refresh period in seconds.
2. Changed to 15 seconds by default.
3. Tightened up the code a little.
Typo.