Fixed bug with caching after clearing cache.