fixing expired cache logic
Merge pull request #20 from Esri/expired-caches

fixing expired cache logic